CHECK_CE_MASk, CHECK_CF_MASK, CHECK_EC_MASK, START_SS_MASK| Constructor and Description |
|---|
DetectSeg(JcsegTaskConfig config,
ADictionary dic)
method to create the new ISegment
|
DetectSeg(Reader input,
JcsegTaskConfig config,
ADictionary dic)
method to create a new ISegment
|
| Modifier and Type | Method and Description |
|---|---|
JcsegTaskConfig |
getConfig()
get the current task config instance
|
ADictionary |
getDict()
get the current dictionary instance
|
int |
getStreamPosition()
get the current length of the stream
|
IWord |
next()
segment a word from a char array
from a specified position.
|
protected void |
pushBack(int data)
push back the data to the stream
|
protected int |
readNext()
read the next char from the current position
|
void |
reset(Reader input)
reset the reader
|
void |
setConfig(JcsegTaskConfig config)
set the current task config
|
void |
setDict(ADictionary dic)
set the current dictionary instance
|
public DetectSeg(JcsegTaskConfig config, ADictionary dic) throws IOException
config - dic - IOExceptionpublic DetectSeg(Reader input, JcsegTaskConfig config, ADictionary dic) throws IOException
input - config - dic - IOExceptionpublic void reset(Reader input) throws IOException
ISegmentreset in interface ISegmentIOExceptionISegment.reset(Reader)public int getStreamPosition()
ISegmentgetStreamPosition in interface ISegmentISegment.getStreamPosition()protected int readNext()
throws IOException
IOExceptionprotected void pushBack(int data)
throws IOException
data - IOExceptionpublic void setDict(ADictionary dic)
dic - public ADictionary getDict()
public void setConfig(JcsegTaskConfig config)
config - public JcsegTaskConfig getConfig()
public IWord next() throws IOException
ISegmentnext in interface ISegmentIOExceptionISegment.next()Copyright © 2017. All Rights Reserved.