Package chemaxon.formats.recognizer
Class SMILESRecognizer
- java.lang.Object
-
- chemaxon.formats.recognizer.Recognizer
-
- chemaxon.formats.recognizer.SMILESRecognizer
-
@PublicAPI @Deprecated public class SMILESRecognizer extends Recognizer
Deprecated.as of Marvin 2014.07.21.0 intended for internal use onlySMILES/SMARTS/CxSMILES/CxSMARTS format recognizer.- Since:
- Marvin 5.0, 06/07/2007
-
-
Field Summary
-
Fields inherited from class chemaxon.formats.recognizer.Recognizer
needsMore
-
-
Constructor Summary
Constructors Constructor Description SMILESRecognizer()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
canBeSMARTS(String s)
Deprecated.Tests whether a string can be SMARTS.static boolean
canBeSMILES(String s)
Deprecated.Tests whether a string can be SMILES.String
guessFormat(String line)
Deprecated.MODIFIING THIS METHOD REQUIRES TO UPDATE THERecognizer.tryToRecognize(String, int, RecognizerList)
METHOD AS WELL!!static boolean
isComment(String s)
Deprecated.static boolean
isCxSMILESLine(String s)
Deprecated.Checks if a line is a Chemaxon Extended SMILES/SMARTS 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
-
-
-
-
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
-
canBeSMILES
public static boolean canBeSMILES(String s)
Deprecated.Tests whether a string can be SMILES.- Parameters:
s
- the input string- Returns:
- true if it can be, false if it cannot be SMILES
-
canBeSMARTS
public static boolean canBeSMARTS(String s)
Deprecated.Tests whether a string can be SMARTS.- Parameters:
s
- the input string- Returns:
- true if it can be, false if it cannot be SMARTS.
-
isComment
public static boolean isComment(String s)
Deprecated.
-
isCxSMILESLine
public static boolean isCxSMILESLine(String s)
Deprecated.Checks if a line is a Chemaxon Extended SMILES/SMARTS format.- Parameters:
s
- the input string- Returns:
- true if it is cxsmiles, false otherwise
-
guessFormat
public String guessFormat(String line)
Deprecated.MODIFIING THIS METHOD REQUIRES TO UPDATE THERecognizer.tryToRecognize(String, int, RecognizerList)
METHOD AS WELL!!- 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
-
-