opennlp.maxent.io
Class ObjectGISModelWriter

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

public class ObjectGISModelWriter
extends GISModelWriter


Field Summary
protected  java.io.ObjectOutputStream output
           
 
Fields inherited from class opennlp.maxent.io.GISModelWriter
CORRECTION_CONSTANT, CORRECTION_PARAM, OUTCOME_LABELS, PARAMS, PRED_LABELS
 
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.
 
Method Summary
protected  void close()
           
protected  void writeDouble(double d)
           
protected  void writeInt(int i)
           
protected  void writeUTF(java.lang.String s)
           
 
Methods inherited from class opennlp.maxent.io.GISModelWriter
compressOutcomes, persist, sortValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

protected java.io.ObjectOutputStream output
Constructor Detail

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.
Method Detail

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.