public class GGPGeomReader extends java.lang.Object implements GeomReader
Modified by: Joseph A. Huwaldt
EOFMSG
Constructor and Description |
---|
GGPGeomReader() |
Modifier and Type | Method and Description |
---|---|
GeomConfig |
read(java.io.InputStream inStream,
java.lang.String name)
Method that reads in a GGP formatted geometry file from the specified input stream
and returns a configuration geometry object that contains the geometry from the GGP
file.
|
void |
setFileUnits(javax.measure.unit.Unit<javax.measure.quantity.Length> units)
Method that specifies the units used for the geometry as stored in the file.
|
void |
write(java.io.File filename,
GeomConfig theConfig)
Method that writes out a GGP formatted geometry file for the geometry contained in
the supplied configuration geometry object.
|
public GeomConfig read(java.io.InputStream inStream, java.lang.String name) throws java.io.IOException
read
in interface GeomReader
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
public void write(java.io.File filename, GeomConfig theConfig) throws java.io.IOException
write
in interface GeomReader
filename
- The name of the GGP geometry file to be written out.theConfig
- The configuration geometry to be written out.java.io.IOException
public void setFileUnits(javax.measure.unit.Unit<javax.measure.quantity.Length> units)
setFileUnits
in interface GeomReader
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).