Package opennlp.tools.ml.maxent.io
Class GISModelWriter
- java.lang.Object
-
- opennlp.tools.ml.model.AbstractModelWriter
-
- opennlp.tools.ml.maxent.io.GISModelWriter
-
- Direct Known Subclasses:
BinaryGISModelWriter,QNModelWriter
public abstract class GISModelWriter extends AbstractModelWriter
The base class for writers ofGIS 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.
-
-
Constructor Summary
Constructors Constructor Description GISModelWriter(AbstractModel model)Initializes aGISModelWriterfor aGIS model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpersist()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.AbstractModelWriter
close, writeDouble, writeInt, writeUTF
-
-
-
-
Constructor Detail
-
GISModelWriter
public GISModelWriter(AbstractModel model)
Initializes aGISModelWriterfor aGIS model.- Parameters:
model- TheGIS modelto be written.
-
-
Method Detail
-
persist
public void persist() throws IOExceptionWrites 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 the#persist()method in addition to implementing thewriteX(..)methods.- Specified by:
persistin classAbstractModelWriter- Throws:
IOException- Thrown if IO errors occurred.
-
-