public interface GeomReader
Modified by: Joseph A. Huwaldt
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EOFMSG
An error message for unexpected end-of-file.
|
Modifier and Type | Method and Description |
---|---|
GeomConfig |
read(java.io.InputStream inStream,
java.lang.String name)
Method provided by sub-classes that reads in a geometry file from the supplied
input stream and returns a properly formatted configuration geometry object that
contains the geometry from the file.
|
void |
setFileUnits(javax.measure.unit.Unit<javax.measure.quantity.Length> units)
Method provided by sub-classes that specified the units used for the geometry as
stored in the disk file.
|
void |
write(java.io.File filename,
GeomConfig theConfig)
Method provided by sub-classes that writes out a geometry file for the geometry
contained in the supplied configuration geometry object.
|
static final java.lang.String EOFMSG
GeomConfig read(java.io.InputStream inStream, java.lang.String name) throws java.io.IOException
inStream
- The input stream to geometry file that we are reading from.name
- The name of the geometry being read in (null for no name).java.io.IOException
void write(java.io.File filename, GeomConfig theConfig) throws java.io.IOException
filename
- The name of the geometry file to be written out.theConfig
- The configuration geometry to be written out.java.io.IOException
void setFileUnits(javax.measure.unit.Unit<javax.measure.quantity.Length> units)
units
- The units used for the geometry in the disk file. If null is passed,
the units will default to the reference length units (meters).