Package opennlp.tools.ml.maxent.io
Class GISModelWriter
java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
opennlp.tools.ml.AbstractMLModelWriter
opennlp.tools.ml.maxent.io.GISModelWriter
- Direct Known Subclasses:
- BinaryGISModelWriter,- QNModelWriter
The base class for writers of 
GIS models.
 
 It provides the persist() method which takes care of the structure of a
 stored document, and requires an extending class to define precisely how
 the data should be stored.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionGISModelWriter(AbstractModel model) Initializes aGISModelWriterfor aGIS model.
- 
Method SummaryModifier and TypeMethodDescriptionvoidpersist()Writes theGIS model, using theAbstractModelWriter.writeUTF(String),AbstractModelWriter.writeDouble(double), orAbstractModelWriter.writeInt(int)} methods implemented by extending classes.Methods inherited from class opennlp.tools.ml.model.AbstractModelWriterclose, writeDouble, writeInt, writeUTF
- 
Constructor Details- 
GISModelWriterInitializes aGISModelWriterfor aGIS model.- Parameters:
- model- The- GIS modelto be written.
 
 
- 
- 
Method Details- 
persistWrites theGIS model, using theAbstractModelWriter.writeUTF(String),AbstractModelWriter.writeDouble(double), orAbstractModelWriter.writeInt(int)} methods implemented by extending classes.If you wish to create a GISModelWriterwhich uses a different structure, it will be necessary to override thepersist()method in addition to implementing thewriteX(..)methods.- Overrides:
- persistin class- AbstractMLModelWriter
- Throws:
- IOException- Thrown if IO errors occurred.
 
 
-