@PublicAPI public abstract class Recognizer extends java.lang.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
|
java.lang.String |
guessFormat(java.lang.String line)
Tries to guess the format of the given line.
|
boolean |
isLastLine()
Tests whether it is the last line of file.
|
boolean |
needsMore()
Should we read more lines?
|
chemaxon.common.util.Pair<java.lang.Boolean,java.util.Collection<java.lang.String>> |
tryToRecognize(java.lang.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(java.lang.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(java.lang.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 java.lang.String guessFormat(java.lang.String line)
line
- the linepublic chemaxon.common.util.Pair<java.lang.Boolean,java.util.Collection<java.lang.String>> tryToRecognize(java.lang.String line, int lineNumber)
line
- the line stringlineNumber
- the position of the linePair
of which second parameter gives the format name collection that is: