public class NameSampleDataStream extends FilterObjectStream<String,NameSample>
NameSampleDataStream class converts tagged Strings
provided by a DataStream to NameSample objects.
It uses text that is is one-sentence per line and tokenized
with names identified by <START> and <END> tags.| Modifier and Type | Field and Description |
|---|---|
static String |
END_TAG |
static String |
START_TAG |
static String |
START_TAG_PREFIX |
| Constructor and Description |
|---|
NameSampleDataStream(ObjectStream<String> in) |
| Modifier and Type | Method and Description |
|---|---|
NameSample |
read()
Returns the next object.
|
close, resetpublic static final String START_TAG_PREFIX
public static final String START_TAG
public static final String END_TAG
public NameSampleDataStream(ObjectStream<String> in)
public NameSample read() throws IOException
ObjectStreamIOException - if there is an error during readingCopyright © 2017 The Apache Software Foundation. All rights reserved.