|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.formats.recognizer.Recognizer
public abstract class Recognizer
File format recognizer.
| Constructor Summary | |
|---|---|
Recognizer()
|
|
| Method Summary | |
|---|---|
int |
getLastProcessedLineNum()
Gets the number of the last processed line. |
int |
getPriority()
Deprecated. as of Marvin 5.1, use MFileFormat.getPriority(java.lang.String) instead |
boolean |
isLastLine()
Tests whether it is the last line of file. |
abstract boolean |
needsMore()
Should we read more lines? |
abstract void |
tryToRecognize(java.lang.String line,
int linenum,
RecognizerList reclist)
Tries to recognize a line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Recognizer()
| Method Detail |
|---|
public abstract void tryToRecognize(java.lang.String line,
int linenum,
RecognizerList reclist)
line - the linelinenum - the line numberreclist - the list of possible formatspublic abstract boolean needsMore()
true if more lines are needed,
false otherwisepublic int getPriority()
MFileFormat.getPriority(java.lang.String) instead
public int getLastProcessedLineNum()
public boolean isLastLine()
true if it is the last line,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||