org.xmlcml.noncml
Interface NonCMLDocument

All Known Subinterfaces:
JME, MDLMol, SDF, SMILES, XYZ
All Known Implementing Classes:
NonCMLDocumentImpl

public interface NonCMLDocument
extends CMLDocument

an interface for input/output of non-CML information (e.g. MOL, SMILES). The foreign document is held as a CMLDOM and accessed by input.output methods.


Field Summary
static java.lang.String JME
           
static java.lang.String MDLMOL
           
static java.lang.String SDF
           
static java.lang.String SMILES
           
static java.lang.String XYZ
           
 
Fields inherited from interface org.xmlcml.cml.CMLDocument
PACKAGE_NAME
 
Fields inherited from interface uk.co.demon.ursus.dom.PMRDocument
PACKAGENAME
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 void input(java.io.BufferedReader w)
          input from a Reader.
 java.lang.String output(java.io.Writer w)
          output to a Writer.
 void setOutputCMLMolecule(Molecule outputCMLMolecule)
          to output a CML-Molecule in legacy form the molecule must be added to the NonCMLDocument and then the output() method called
 
Methods inherited from interface org.xmlcml.cml.CMLDocument
debug, getMolecule
 
Methods inherited from interface org.w3c.dom.Document
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setPrefix, supports
 

Field Detail

JME

public static final java.lang.String JME

MDLMOL

public static final java.lang.String MDLMOL

SMILES

public static final java.lang.String SMILES

SDF

public static final java.lang.String SDF

XYZ

public static final java.lang.String XYZ
Method Detail

input

public void input(java.io.BufferedReader w)
           throws java.io.IOException,
                  CMLException
input from a Reader. If the String value is to be input, use a StringReader. This could be used immediately after a default constructor and may be used in the class constructors

output

public java.lang.String output(java.io.Writer w)
                        throws java.io.IOException,
                               CMLException
output to a Writer. If the String value is required, use a StringWriter and access the return value.

setOutputCMLMolecule

public void setOutputCMLMolecule(Molecule outputCMLMolecule)
to output a CML-Molecule in legacy form the molecule must be added to the NonCMLDocument and then the output() method called