public abstract class Recognizer extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
needsMore |
Constructor and Description |
---|
Recognizer() |
Modifier and Type | Method and Description |
---|---|
int |
getLastProcessedLineNum()
Deprecated.
as of Marvin 2014.07.21.0 not used
|
boolean |
isLastLine()
Tests whether it is the last line of file.
|
boolean |
needsMore()
Should we read more lines?
|
chemaxon.common.util.Pair<Boolean,Collection<String>> |
tryToRecognize(String line,
int lineNumber)
Checks whether the parameter line can be part of a valid (format specified) file on the given file position.
|
void |
tryToRecognize(String line,
int linenum,
RecognizerList reclist)
Deprecated.
as of Marvin 2014.07.21.0 not used in recognition. Implement
tryToRecognize(String, int) instead. |
@Deprecated public void tryToRecognize(String line, int linenum, RecognizerList reclist)
tryToRecognize(String, int)
instead.line
- the linelinenum
- the line numberreclist
- the list of possible formatspublic boolean needsMore()
true
if more lines are needed, false
otherwise@Deprecated public int getLastProcessedLineNum()
public boolean isLastLine()
true
if it is the last line, false
otherwisepublic chemaxon.common.util.Pair<Boolean,Collection<String>> tryToRecognize(String line, int lineNumber)
line
- the line stringlineNumber
- the position of the linePair
of which second parameter gives the format name collection that is: