|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.io.FileIO jwo.landserf.process.io.TextVectorIO
Contains a collection of static methods for reading and writing text vector files.
Field Summary |
Fields inherited from class jwo.landserf.process.io.FileIO |
BIG_ENDIAN, bitsPerValue, byteOrder, errorMessage, filePointer, GATHER_INFO, lineNumber, LITTLE_ENDIAN, LOAD_ALL, LOAD_SELECTED, nullCode, substituteNull, useMultiplier, zMultiplier |
Constructor Summary | |
TextVectorIO()
There should be no need to call the constructor explicitly since all methods are static. |
Method Summary | |
static AttributeTable |
readAttributeTable(String fileName)
Reads the given attribute file and returns an attribute table with its contents. |
static VectorMap |
readVector(String fileName,
int fileFormat,
GISFrame gisFrame)
Reads a text file in the given format and creates a vector map from it. |
static boolean |
writeAttributeTable(AttributeTable attTable,
String fileName)
Writes out the given attribute table to the given file. |
static boolean |
writeVector(VectorMap vectorMap,
String fileName,
int fileFormat,
GISFrame gisFrame)
Writes a text file in the given format based on the supplied vector map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextVectorIO()
Method Detail |
public static VectorMap readVector(String fileName, int fileFormat, GISFrame gisFrame)
fileName
- Name of file to read.fileFormat
- Type of text file to read (see FileHandler
).gisFrame
- GUI in which to report results.
FileHandler
public static boolean writeVector(VectorMap vectorMap, String fileName, int fileFormat, GISFrame gisFrame)
vectorMap
- Vector map to write.fileName
- Name of file to create.fileFormat
- Type of text file to create.gisFrame
- GUI in which to report progress.
public static AttributeTable readAttributeTable(String fileName)
fileName
- Name of attribute file to read.
public static boolean writeAttributeTable(AttributeTable attTable, String fileName)
attTable
- Attribute table to write.fileName
- Name of file to contain table.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |