@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, warningpublic void doctypeDecl(String name, String publicId, String systemId) throws Exception
Exceptionpublic void startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerpublic void endDocument()
endDocument in interface ContentHandlerendDocument in class DefaultHandlerpublic void endElement(String uri, String local, String raw)
endElement in interface ContentHandlerendElement in class DefaultHandlerpublic void startElement(String uri, String local, String raw, Attributes atts)
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - 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 ContentHandlercharacters in class DefaultHandlerch - characters to handlepublic ChemFile getChemFile()
Copyright © 2021. All rights reserved.