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
ObjectStream
read
in interface ObjectStream<NameSample>
IOException
public void reset() throws IOException, UnsupportedOperationException
ObjectStream
reset
in interface ObjectStream<NameSample>
IOException
UnsupportedOperationException
public void close() throws IOException
ObjectStream
ObjectStream
and releases all allocated
resources. After close was called its not allowed to call
read or reset.close
in interface ObjectStream<NameSample>
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.