Package chemaxon.formats.recognizer
Class AbbrevGroupRecognizer
- java.lang.Object
-
- chemaxon.formats.recognizer.Recognizer
-
- chemaxon.formats.recognizer.AbbrevGroupRecognizer
-
@PublicAPI @Deprecated public class AbbrevGroupRecognizer extends Recognizer
Deprecated.as of Marvin 2014.07.21.0 intended for internal use onlyAbbrevGroup format recognizer.- Since:
- Marvin 5.0, 06/08/2007
-
-
Field Summary
Fields Modifier and Type Field Description static int
CAN_BE
Deprecated.Line can be in the given format.static int
NO
Deprecated.Line is not in the given format.static int
SURE
Deprecated.Line is surely in the given format.-
Fields inherited from class chemaxon.formats.recognizer.Recognizer
needsMore
-
-
Constructor Summary
Constructors Constructor Description AbbrevGroupRecognizer()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
guessFormat(String line)
Deprecated.Tries to guess the format of the given line.static int
testLine(String line)
Deprecated.Tests whether a string can be in AbbrevGroup format.chemaxon.common.util.Pair<Boolean,Collection<String>>
tryToRecognize(String line, int lineNumber)
Deprecated.Checks whether the parameter line can be part of a valid (format specified) file on the given file position.-
Methods inherited from class chemaxon.formats.recognizer.Recognizer
getLastProcessedLineNum, isLastLine, needsMore, tryToRecognize
-
-
-
-
Field Detail
-
NO
public static final int NO
Deprecated.Line is not in the given format. Return value for testLine methods.- See Also:
- Constant Field Values
-
CAN_BE
public static final int CAN_BE
Deprecated.Line can be in the given format. Return value for testLine methods.- See Also:
- Constant Field Values
-
SURE
public static final int SURE
Deprecated.Line is surely in the given format. Return value for testLine methods.- See Also:
- Constant Field Values
-
-
Method Detail
-
tryToRecognize
public chemaxon.common.util.Pair<Boolean,Collection<String>> tryToRecognize(String line, int lineNumber)
Deprecated.Description copied from class:Recognizer
Checks whether the parameter line can be part of a valid (format specified) file on the given file position.- Overrides:
tryToRecognize
in classRecognizer
- Parameters:
line
- the line stringlineNumber
- the position of the line- Returns:
- a
Pair
of which second parameter gives the format name collection that is:- Recognized to be excluded if the first parameter is false
- Positively recognized if the first parameter is true
-
testLine
public static int testLine(String line)
Deprecated.Tests whether a string can be in AbbrevGroup format.
-
guessFormat
public String guessFormat(String line)
Deprecated.Description copied from class:Recognizer
Tries to guess the format of the given line. It is useful for single line formats.- Overrides:
guessFormat
in classRecognizer
- Parameters:
line
- the line- Returns:
- the name of the most likely format, that this recognizer can recognize, or null the format could not be decided
-
-