public class NameSampleDataStream extends FilterObjectStream<java.lang.String,NameSample>
NameSampleDataStream
class converts tagged String
s
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 java.lang.String |
END_TAG |
static java.lang.String |
START_TAG |
static java.lang.String |
START_TAG_PREFIX |
Constructor and Description |
---|
NameSampleDataStream(ObjectStream<java.lang.String> in) |
Modifier and Type | Method and Description |
---|---|
NameSample |
read()
Returns the next object.
|
close, reset
public static final java.lang.String START_TAG_PREFIX
public static final java.lang.String START_TAG
public static final java.lang.String END_TAG
public NameSampleDataStream(ObjectStream<java.lang.String> in)
public NameSample read() throws java.io.IOException
ObjectStream
java.io.IOException
- if there is an error during readingCopyright © 2010 - 2020 Adobe. All Rights Reserved