opennlp.uima.util
Class SampleTraceStream<T>
java.lang.Object
opennlp.tools.util.FilterObjectStream<T,T>
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.
Methods inherited from class opennlp.tools.util.FilterObjectStream |
close |
SampleTraceStream
public SampleTraceStream(opennlp.tools.util.ObjectStream<T> samples,
Writer out)
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.