|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.formats.recognizer.Recognizer
chemaxon.formats.recognizer.PDBRecognizer
public class PDBRecognizer
PDB format recognizer.
| Field Summary | |
|---|---|
static int |
CAN_BE
Line can be in the given format. |
static int |
NO
Line is not in the given format. |
static int |
SURE
Line is surely in the given format. |
| Constructor Summary | |
|---|---|
PDBRecognizer(java.lang.String fmt)
Creates an PDB format recognizer. |
|
| Method Summary | |
|---|---|
boolean |
needsMore()
Should we read more lines? |
static int |
testLine(java.lang.String line)
Checks if the given parameter is a PDB record name. |
static int |
testRecord(java.lang.String recName)
Checks if the given parameter is a PDB record name. |
void |
tryToRecognize(java.lang.String line,
int linenum,
RecognizerList reclist)
Tries to recognize a line. |
| Methods inherited from class chemaxon.formats.recognizer.Recognizer |
|---|
getLastProcessedLineNum, getPriority, isLastLine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO
public static final int CAN_BE
public static final int SURE
| Constructor Detail |
|---|
public PDBRecognizer(java.lang.String fmt)
fmt - the codename of the format| Method Detail |
|---|
public void tryToRecognize(java.lang.String line,
int linenum,
RecognizerList reclist)
tryToRecognize in class Recognizerline - the linelinenum - the line numberreclist - the list of recognizerspublic boolean needsMore()
needsMore in class Recognizertrue if more lines are needed,
false otherwisepublic static int testLine(java.lang.String line)
line - the line
SURE if it is surely a PDB line,
CAN_BE if it can be a PDB line,
NO otherwisepublic static int testRecord(java.lang.String recName)
recName - a potential PDB record name
SURE if it is surely a PDB line,
CAN_BE if it can be a PDB line,
NO otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||