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, warning
public 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 ContentHandler
characters
in class DefaultHandler
ch
- characters to handlepublic void doctypeDecl(String name, String publicId, String systemId) throws Exception
Exception
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 startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
public void startElement(String uri, String local, String raw, Attributes atts)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
Copyright © 2021. All rights reserved.