public class XYZWriter extends DefaultChemObjectWriter
| Constructor and Description |
|---|
XYZWriter() |
XYZWriter(OutputStream output) |
XYZWriter(Writer out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> classObject) |
void |
close()
Flushes the output and closes this object.
|
IResourceFormat |
getFormat() |
void |
setWriter(OutputStream output) |
void |
setWriter(Writer out) |
void |
write(IChemObject object) |
void |
writeMolecule(IAtomContainer mol)
writes a single frame in XYZ format to the Writer.
|
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerpublic XYZWriter(Writer out)
out - the stream to write the XYZ file to.public XYZWriter(OutputStream output)
public XYZWriter()
public IResourceFormat getFormat()
public void setWriter(Writer out) throws CDKException
CDKExceptionpublic void setWriter(OutputStream output) throws CDKException
CDKExceptionpublic void close()
throws IOException
IOExceptionpublic boolean accepts(Class<? extends IChemObject> classObject)
public void write(IChemObject object) throws CDKException
CDKExceptionpublic void writeMolecule(IAtomContainer mol) throws IOException
mol - the Molecule to writeIOExceptionCopyright © 2017. All rights reserved.