Package chemaxon.formats.recognizer
Class SMILESRecognizer
java.lang.Object
chemaxon.formats.recognizer.Recognizer
chemaxon.formats.recognizer.SMILESRecognizer
@PublicApi
@Deprecated(forRemoval=true)
@SubjectToRemoval(date=JUL_01_2025)
public class SMILESRecognizer
extends Recognizer
Deprecated, for removal: This API element is subject to removal in a future version.
No longer used, will be removed.
SMILES/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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.static booleanDeprecated, for removal: This API element is subject to removal in a future version.guessFormat(String line) Deprecated, for removal: This API element is subject to removal in a future version.MODIFIING THIS METHOD REQUIRES TO UPDATE THEtryToRecognize(String, int)METHOD AS WELL!!static booleanDeprecated, for removal: This API element is subject to removal in a future version.static booleanDeprecated, for removal: This API element is subject to removal in a future version.chemaxon.common.util.Pair<Boolean, Collection<String>> tryToRecognize(String line, int lineNumber) Deprecated, for removal: This API element is subject to removal in a future version.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
-
Constructor Details
-
SMILESRecognizer
public SMILESRecognizer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
tryToRecognize
public chemaxon.common.util.Pair<Boolean,Collection<String>> tryToRecognize(String line, int lineNumber) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:RecognizerChecks whether the parameter line can be part of a valid (format specified) file on the given file position.- Overrides:
tryToRecognizein classRecognizer- Parameters:
line- the line stringlineNumber- the position of the line- Returns:
- a
Pairof 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
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static boolean canBeSMILES(String s) Deprecated, for removal: This API element is subject to removal in a future version.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
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static boolean canBeSMARTS(String s) Deprecated, for removal: This API element is subject to removal in a future version.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
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static boolean isComment(String s) Deprecated, for removal: This API element is subject to removal in a future version. -
isCxSMILESLine
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static boolean isCxSMILESLine(String s) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.MODIFIING THIS METHOD REQUIRES TO UPDATE THEtryToRecognize(String, int)METHOD AS WELL!!- Overrides:
guessFormatin 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
-