public class SentenceSampleStream extends FilterObjectStream<String,SentenceSample>
Reader and converts them into SentenceSample objects.samples| Constructor and Description |
|---|
SentenceSampleStream(ObjectStream<String> sentences) |
| Modifier and Type | Method and Description |
|---|---|
SentenceSample |
read()
Returns the next object.
|
close, resetpublic SentenceSampleStream(ObjectStream<String> sentences)
public SentenceSample read() throws IOException
ObjectStreamIOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.