public class NKJPSentenceSampleStream extends Object implements ObjectStream<SentenceSample>
Modifier and Type | Method and Description |
---|---|
SentenceSample |
read()
Returns the next object.
|
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence
will be repeated exactly.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public SentenceSample read() throws IOException
ObjectStream
read
in interface ObjectStream<SentenceSample>
IOException
- if there is an error during readingpublic void reset()
ObjectStream
reset
in interface ObjectStream<SentenceSample>
Copyright © 2020 The Apache Software Foundation. All rights reserved.