diva.sketch.recognition
Class MSTrainingWriter

java.lang.Object
  extended by diva.sketch.recognition.MSTrainingWriter
All Implemented Interfaces:
ModelWriter

public class MSTrainingWriter
extends Object
implements ModelWriter

MSTrainingWriter (Multi-Stroke Training Writer) takes a MSTrainingModel and writes it out to an outputstream.

Version:
$Revision: 1.2 $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)

Constructor Summary
MSTrainingWriter()
           
 
Method Summary
 void writeModel(Object m, OutputStream out)
          Write the training model to the output stream.
 void writeModel(Object m, Writer writer)
          Write the training model to the character-output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSTrainingWriter

public MSTrainingWriter()
Method Detail

writeModel

public void writeModel(Object m,
                       OutputStream out)
                throws IOException
Write the training model to the output stream. The caller is responsible for closing the stream.

Throws:
IOException

writeModel

public void writeModel(Object m,
                       Writer writer)
                throws IOException
Write the training model to the character-output stream. The caller is responsible for closing the stream.

Specified by:
writeModel in interface ModelWriter
Throws:
IOException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.