opennlp.uima.util
Class SampleTraceStream<T>

java.lang.Object
  extended by opennlp.tools.util.FilterObjectStream<T,T>
      extended by opennlp.uima.util.SampleTraceStream<T>
Type Parameters:
T -
All Implemented Interfaces:
opennlp.tools.util.ObjectStream<T>

public class SampleTraceStream<T>
extends opennlp.tools.util.FilterObjectStream<T,T>

Writes the samples which are processed by this stream to a file. In the case the underlying stream is reseted this stream will detect that, and does not write the samples again to the output writer.


Constructor Summary
SampleTraceStream(opennlp.tools.util.ObjectStream<T> samples, Writer out)
           
 
Method Summary
 T read()
           
 void reset()
           
 
Methods inherited from class opennlp.tools.util.FilterObjectStream
close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleTraceStream

public SampleTraceStream(opennlp.tools.util.ObjectStream<T> samples,
                         Writer out)
Method Detail

reset

public void reset()
           throws IOException,
                  UnsupportedOperationException
Specified by:
reset in interface opennlp.tools.util.ObjectStream<T>
Overrides:
reset in class opennlp.tools.util.FilterObjectStream<T,T>
Throws:
IOException
UnsupportedOperationException

read

public T read()
       throws IOException
Throws:
IOException


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