public class Mol2Writer extends DefaultChemObjectWriter
| Constructor and Description |
|---|
Mol2Writer() |
Mol2Writer(OutputStream output) |
Mol2Writer(Writer out)
Constructs a new Mol2 writer.
|
| 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 Mol2Writer()
public Mol2Writer(Writer out)
out - the stream to write the Mol2 file to.public Mol2Writer(OutputStream output)
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 writeIOException - if there is an error during writingCopyright © 2017. All rights reserved.