opennlp.maxent.io
Class ObjectGISModelWriter

java.lang.Object
  extended by opennlp.model.AbstractModelWriter
      extended by opennlp.maxent.io.GISModelWriter
          extended by opennlp.maxent.io.ObjectGISModelWriter

public class ObjectGISModelWriter
extends GISModelWriter


Constructor Summary
ObjectGISModelWriter(AbstractModel model, ObjectOutputStream dos)
          Constructor which takes a GISModel and a ObjectOutputStream and prepares itself to write the model to that stream.
 
Method Summary
 void close()
           
 void writeDouble(double d)
           
 void writeInt(int i)
           
 void writeUTF(String s)
           
 
Methods inherited from class opennlp.maxent.io.GISModelWriter
persist
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGISModelWriter

public ObjectGISModelWriter(AbstractModel model,
                            ObjectOutputStream dos)
Constructor which takes a GISModel and a ObjectOutputStream and prepares itself to write the model to that stream.

Parameters:
model - The GISModel which is to be persisted.
dos - The stream which will be used to persist the model.
Method Detail

writeUTF

public void writeUTF(String s)
              throws IOException
Specified by:
writeUTF in class AbstractModelWriter
Throws:
IOException

writeInt

public void writeInt(int i)
              throws IOException
Specified by:
writeInt in class AbstractModelWriter
Throws:
IOException

writeDouble

public void writeDouble(double d)
                 throws IOException
Specified by:
writeDouble in class AbstractModelWriter
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in class AbstractModelWriter
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.