@Deprecated public class INChIHandler extends DefaultHandler
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.
INChIReader
Constructor and Description |
---|
INChIHandler()
Deprecated.
Constructor for the IChIHandler.
|
Modifier and Type | Method and 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.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public void doctypeDecl(String name, String publicId, String systemId) throws Exception
Exception
public void startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
public void endElement(String uri, String local, String raw)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public void startElement(String uri, String local, String raw, Attributes atts)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- the Universal Resource Identifierlocal
- the local name (without namespace part)raw
- the complete element name (with namespace part)atts
- the attributes of this elementpublic void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- characters to handlepublic ChemFile getChemFile()
Copyright © 2021. All rights reserved.