public class SentenceSeg extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IStringBuffer |
gisb
global string buffer
|
protected int |
idx |
protected IPushbackReader |
reader |
| Constructor and Description |
|---|
SentenceSeg() |
SentenceSeg(Reader reader)
construct method
|
| Modifier and Type | Method and Description |
|---|---|
Sentence |
next()
get the next sentence
|
protected int |
readNext()
read the next char from the current position
|
protected void |
readUntil(char echar)
loop the reader until the specifield char is found.
|
void |
reset(Reader input)
stream/reader reset.
|
protected int idx
protected IPushbackReader reader
protected IStringBuffer gisb
public SentenceSeg(Reader reader) throws IOException
reader - IOExceptionpublic SentenceSeg()
throws IOException
IOExceptionpublic void reset(Reader input) throws IOException
input - IOExceptionprotected int readNext()
throws IOException
IOExceptionpublic Sentence next() throws IOException
IOExceptionprotected void readUntil(char echar)
throws IOException
echar - IOExceptionCopyright © 2017. All Rights Reserved.