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 public class INChIHandler extends DefaultHandler
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:
INChIReader
- Source code:
- main
- Belongs to CDK module:
- extra
- Requires:
- java1.4+
-
-
Constructor Summary
Constructors Constructor Description INChIHandler()
Deprecated.Constructor for the IChIHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
Deprecated.Implementation of the characters() procedure overwriting the DefaultHandler interface.void
doctypeDecl(String name, String publicId, String systemId)
Deprecated.void
endDocument()
Deprecated.void
endElement(String uri, String local, String raw)
Deprecated.ChemFile
getChemFile()
Deprecated.void
startDocument()
Deprecated.void
startElement(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, warning
-
-
-
-
Method Detail
-
doctypeDecl
public void doctypeDecl(String name, String publicId, String systemId) throws Exception
Deprecated.- Throws:
Exception
-
startDocument
public void startDocument()
Deprecated.- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
-
endDocument
public void endDocument()
Deprecated.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
-
endElement
public void endElement(String uri, String local, String raw)
Deprecated.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
startElement
public void startElement(String uri, String local, String raw, Attributes atts)
Deprecated.Implementation of the startElement() procedure overwriting the DefaultHandler interface.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in 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:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
ch
- characters to handle
-
getChemFile
public ChemFile getChemFile()
Deprecated.
-
-