Package org.jmol.adapter.writers
Class CDXMLWriter
java.lang.Object
org.jmol.adapter.writers.CMLWriter
org.jmol.adapter.writers.CDXMLWriter
- All Implemented Interfaces:
JmolWriter
Minimal ChemDraw CDXML writer just converts CDX to CDXML involving just the
basic necessities for XmlCDXReader.
-
Field Summary
Fields inherited from class org.jmol.adapter.writers.CMLWriter
addBonds, allTrajectories, atomsMax, doTransform, oc, vwr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
fromASC
(AtomSetCollection asc) static String
fromCDX
(GenericBinaryDocument binaryDoc) static String
fromString
(Viewer vwr, String type, String mol) static void
void
static String
wrap the string as character data, with replacements for [ noted as a list starting with * after the CDATA terminationMethods inherited from class org.jmol.adapter.writers.CMLWriter
addAttribute, addAttributes, appendEmptyTag, closeTag, openDocument, openTag, startOpenTag, terminateEmptyTag, terminateTag, toString
-
Constructor Details
-
CDXMLWriter
public CDXMLWriter()
-
-
Method Details
-
set
- Specified by:
set
in interfaceJmolWriter
- Overrides:
set
in classCMLWriter
-
write
- Specified by:
write
in interfaceJmolWriter
- Overrides:
write
in classCMLWriter
-
fromCDX
- Throws:
Exception
-
fromASC
-
wrapCData
wrap the string as character data, with replacements for [ noted as a list starting with * after the CDATA termination- Parameters:
s
-- Returns:
- wrapped text
-
main
-
fromString
-