|
|||||||||
| 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.PeptideRecognizer
public class PeptideRecognizer
Peptide format recognizer.
| Constructor Summary | |
|---|---|
PeptideRecognizer(java.lang.String fmt)
Creates a Peptide format recognizer. |
|
| Method Summary | |
|---|---|
static boolean |
canBe1LetterPeptide(java.lang.String s)
Tests whether a string can be one-letter-abbreviated peptide name. |
static boolean |
canBe3LetterPeptide(java.lang.String s)
Tests whether a string can be three-letter-abbreviated peptide name. |
static java.lang.String |
guessPeptideFormat(java.lang.String header)
Tries to distinguish between one letter and two letter peptides. |
boolean |
needsMore()
Should we read more lines? |
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 |
| Constructor Detail |
|---|
public PeptideRecognizer(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 boolean canBe1LetterPeptide(java.lang.String s)
s - the input string
public static java.lang.String guessPeptideFormat(java.lang.String header)
header - first few chars of the input stream
public static boolean canBe3LetterPeptide(java.lang.String s)
s - the input string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||