|
||||||||||
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.LandSerfIO
Contains a collection of static methods for reading and writing LandSerf format 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 | |
LandSerfIO()
There should be no need to call the constructor explicitly since all methods are static. |
Method Summary | |
static RasterMap |
readOldRaster(String fileName)
Reads a pre 2.0 version of serialized LandSerf raster map. |
static VectorMap |
readOldVector(String fileName)
Reads a pre 2.0 version of serialized LandSerf vector map. |
static RasterMap |
readRaster(String fileName)
Attempts to read the given file representing a serialized raster map. |
static VectorMap |
readVector(String fileName)
Attempts to read the given file representing a serialized vector map. |
static boolean |
write(SpatialObject spObject,
String fileName)
Attempts to save the given spatial object as the given file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LandSerfIO()
Method Detail |
public static boolean write(SpatialObject spObject, String fileName)
spObject
- Spatial object to save.fileName
- Name of file to save.
public static RasterMap readRaster(String fileName)
fileName
- Name of file to read.
public static RasterMap readOldRaster(String fileName)
fileName
- Name of file to read.
public static VectorMap readVector(String fileName)
fileName
- Name of file to read.
public static VectorMap readOldVector(String fileName)
fileName
- Name of file to read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |