|
|||||||||
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
public class 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, DEBUG, 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,
LSThread lsThread)
Reads the given attribute file and returns an attribute table with its contents. |
static VectorMap |
readVector(String fileName,
int fileFormat,
GISFrame gisFrame,
LSThread lsThread)
Reads a text file in the given format and creates a vector map from it. |
static boolean |
writeAttributeTable(AttributeTable attTable,
String fileName,
LSThread lsThread)
Writes out the given attribute table to the given file. |
static boolean |
writeVector(VectorMap vectorMap,
String fileName,
int fileFormat,
GISFrame gisFrame,
LSThread lsThread)
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, LSThread lsThread)
fileName
- Name of file to read.fileFormat
- Type of text file to read (see FileHandler
).gisFrame
- GUI in which to report results.lsThread
- Thread that called this method (allows it to be interrupted).
Can be null, in which case, method cannot be interrupted.
FileHandler
public static boolean writeVector(VectorMap vectorMap, String fileName, int fileFormat, GISFrame gisFrame, LSThread lsThread)
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.lsThread
- Thread that called this method (allows it to be interrupted).
Can be null, in which case, method cannot be interrupted.
public static AttributeTable readAttributeTable(String fileName, LSThread lsThread)
fileName
- Name of attribute file to read.lsThread
- Thread that called this method (allows it to be interrupted).
Can be null, in which case, method cannot be interrupted.
public static boolean writeAttributeTable(AttributeTable attTable, String fileName, LSThread lsThread)
attTable
- Attribute table to write.fileName
- Name of file to contain table.lsThread
- Thread that called this method (allows it to be interrupted).
Can be null, in which case, method cannot be interrupted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |