Package org.openscience.cdk.io.inchi
Class INChIHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openscience.cdk.io.inchi.INChIHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Deprecated.
SAX2 implementation for INChI XML fragment parsing.
The supported elements are: identifier, formula and connections. All other elements are not parsed (at this moment). This parser is written based on the INChI files in data/ichi for version 1.1Beta.
The returned ChemFile contains a ChemSequence in which the ChemModel represents the molecule.
- See Also:
- Requires:
- java1.4+
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Deprecated.Implementation of the characters() procedure overwriting the DefaultHandler interface.voiddoctypeDecl(String name, String publicId, String systemId) Deprecated.voidDeprecated.voidendElement(String uri, String local, String raw) Deprecated.Deprecated.voidDeprecated.voidstartElement(String uri, String local, String raw, Attributes atts) Deprecated.Implementation of the startElement() procedure overwriting the DefaultHandler interface.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
INChIHandler
public INChIHandler()Deprecated.Constructor for the IChIHandler.
-
-
Method Details
-
doctypeDecl
Deprecated.- Throws:
Exception
-
startDocument
public void startDocument()Deprecated.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler
-
endDocument
public void endDocument()Deprecated.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler
-
endElement
Deprecated.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
startElement
Deprecated.Implementation of the startElement() procedure overwriting the DefaultHandler interface.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
uri- the Universal Resource Identifierlocal- the local name (without namespace part)raw- the complete element name (with namespace part)atts- the attributes of this element
-
characters
public void characters(char[] ch, int start, int length) Deprecated.Implementation of the characters() procedure overwriting the DefaultHandler interface.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Parameters:
ch- characters to handle
-
getChemFile
Deprecated.
-