opennlp.maxent.io
Class ObjectGISModelWriter
java.lang.Object
opennlp.maxent.io.GISModelWriter
opennlp.maxent.io.ObjectGISModelWriter
public class ObjectGISModelWriter
- extends GISModelWriter
Field Summary |
protected java.io.ObjectOutputStream |
output
|
Constructor Summary |
ObjectGISModelWriter(GISModel model,
java.io.ObjectOutputStream dos)
Constructor which takes a GISModel and a ObjectOutputStream and prepares
itself to write the model to that stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
output
protected java.io.ObjectOutputStream output
ObjectGISModelWriter
public ObjectGISModelWriter(GISModel model,
java.io.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.
writeUTF
protected void writeUTF(java.lang.String s)
throws java.io.IOException
- Specified by:
writeUTF
in class GISModelWriter
- Throws:
java.io.IOException
writeInt
protected void writeInt(int i)
throws java.io.IOException
- Specified by:
writeInt
in class GISModelWriter
- Throws:
java.io.IOException
writeDouble
protected void writeDouble(double d)
throws java.io.IOException
- Specified by:
writeDouble
in class GISModelWriter
- Throws:
java.io.IOException
close
protected void close()
throws java.io.IOException
- Specified by:
close
in class GISModelWriter
- Throws:
java.io.IOException
Copyright © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.