public class Recognizer extends Object implements OutputListener
Constructor and Description |
---|
Recognizer() |
Recognizer(String pattern) |
Recognizer(String pattern,
boolean collectRestOfBuffer) |
Modifier and Type | Method and Description |
---|---|
void |
addRecognizerListener(RecognizerListener l) |
void |
analyseBytes(byte[] buffer,
int nbytes,
String originStd,
Charset charset)
nBytes new output bytes are in buffer to analyse
|
int |
numberListeners() |
void |
removeRecognizerListener(RecognizerListener l) |
void |
streamEnded(String originStd)
Assume there are no network problems, hence unexpected stream end means Prolog process has died unexpectedly
|
String |
toString() |
public Recognizer()
public Recognizer(String pattern)
public Recognizer(String pattern, boolean collectRestOfBuffer)
public int numberListeners()
public void analyseBytes(byte[] buffer, int nbytes, String originStd, Charset charset)
OutputListener
analyseBytes
in interface OutputListener
charset
- character set assumed by the logic enginepublic void streamEnded(String originStd)
streamEnded
in interface OutputListener
public void addRecognizerListener(RecognizerListener l)
public void removeRecognizerListener(RecognizerListener l)