Class EventCMLHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.openscience.cdk.io.cml.CMLHandler
-
- org.openscience.cdk.io.iterator.event.EventCMLHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class EventCMLHandler extends CMLHandler
CDO object needed as interface with the JCFL library for reading CML in a event based manner.The CDO only takes care about atoms, bonds and molecules.
- Author:
- Egon Willighagen <egonw@sci.kun.nl>
- Source code:
- main
- Belongs to CDK module:
- io
-
-
Field Summary
Fields Modifier and Type Field Description protected static ILoggingTool
logger
-
Constructor Summary
Constructors Constructor Description EventCMLHandler(DefaultEventChemObjectReader eventReader, IChemObjectBuilder builder)
Constructs an iterating-abled CDO.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDocument()
Procedure required by the CDOInterface.void
endObject(String objectType)
Procedure required by the CDOInterface.IAtomContainer
getAtomContainer()
void
setDocumentProperty(String type, String value)
Procedure required by the CDOInterface.void
setObjectProperty(String objectType, String propertyType, String propertyValue)
Procedure required by the CDOInterface.void
startDocument()
Procedure required by the CDOInterface.void
startObject(String objectType)
Procedure required by the CDOInterface.-
Methods inherited from class org.openscience.cdk.io.cml.CMLHandler
characters, doctypeDecl, endElement, registerConvention, startElement
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
logger
protected static final ILoggingTool logger
-
-
Constructor Detail
-
EventCMLHandler
public EventCMLHandler(DefaultEventChemObjectReader eventReader, IChemObjectBuilder builder)
Constructs an iterating-abled CDO. After reading one molecule it fires a frameRead event.
-
-
Method Detail
-
getAtomContainer
public IAtomContainer getAtomContainer()
-
startDocument
public void startDocument()
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classCMLHandler
-
endDocument
public void endDocument()
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classCMLHandler
-
setDocumentProperty
public void setDocumentProperty(String type, String value)
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library
-
startObject
public void startObject(String objectType)
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library
-
endObject
public void endObject(String objectType)
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library
-
-