public class Conll03NameSampleStream extends Object implements ObjectStream<NameSample>
| Modifier and Type | Class and Description |
|---|---|
static class |
Conll03NameSampleStream.LANGUAGE |
| Constructor and Description |
|---|
Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang,
InputStream in,
int types) |
Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang,
ObjectStream<String> lineStream,
int types) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
ObjectStream and releases all allocated
resources. |
NameSample |
read()
Returns the next object.
|
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence
will be repeated exactly.
|
public Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, ObjectStream<String> lineStream, int types)
lang - lineStream - types - public Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, InputStream in, int types)
lang - in - types - public NameSample read() throws IOException
ObjectStreamread in interface ObjectStream<NameSample>IOExceptionpublic void reset()
throws IOException,
UnsupportedOperationException
ObjectStreamreset in interface ObjectStream<NameSample>IOExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
ObjectStreamObjectStream and releases all allocated
resources. After close was called its not allowed to call
read or reset.close in interface ObjectStream<NameSample>IOExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.