public class CMLHandler extends DefaultHandler
Data is stored into the Chemical Document Object which is passed when instantiating this class. This makes it possible that programs that do not use CDK for internal data storage, use this CML library.
| Constructor and Description |
|---|
CMLHandler(IChemFile chemFile)
Constructor for the CMLHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Implementation of the characters() procedure overwriting the DefaultHandler interface.
|
void |
doctypeDecl(String name,
String publicId,
String systemId) |
void |
endDocument()
Calling this procedure signals the end of the XML document.
|
void |
endElement(String uri,
String local,
String raw) |
void |
registerConvention(String convention,
ICMLModule conv) |
void |
startDocument() |
void |
startElement(String uri,
String local,
String raw,
Attributes atts) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic CMLHandler(IChemFile chemFile)
chemFile - The document in which data is storedpublic void registerConvention(String convention, ICMLModule conv)
public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerch - characters to handlepublic void doctypeDecl(String name, String publicId, String systemId) throws Exception
Exceptionpublic 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 startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerpublic void startElement(String uri, String local, String raw, Attributes atts)
startElement in interface ContentHandlerstartElement in class DefaultHandlerCopyright © 2021. All rights reserved.