public class Mopac7Writer extends DefaultChemObjectWriter
| Constructor and Description |
|---|
Mopac7Writer()
Creates a writer to serialize a molecule as Mopac7 input.
|
Mopac7Writer(OutputStream out)
Creates a writer to serialize a molecule as Mopac7 input.
|
Mopac7Writer(Writer out)
Creates a writer to serialize a molecule as Mopac7 input.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> classObject)
Returns whether the given
IChemObject can be read or written. |
void |
close()
Closes this IChemObjectIO's resources.
|
IResourceFormat |
getFormat()
Returns the
IResourceFormat class for this IO class. |
void |
setWriter(OutputStream writer)
Sets the OutputStream from which this ChemObjectWriter should write
the contents.
|
void |
setWriter(Writer writer)
Sets the Writer from which this ChemObjectWriter should write
the contents.
|
void |
write(IChemObject arg0)
Writes the content of "object" to output.
|
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 Mopac7Writer()
throws IOException
IOExceptionpublic Mopac7Writer(OutputStream out) throws IOException
OutputStream.out - OutputStream to which the output is writtenIOExceptionpublic Mopac7Writer(Writer out) throws IOException
Writer.out - Writer to which the output is writtenIOExceptionpublic void write(IChemObject arg0) throws CDKException
arg0 - the object of which the content is outputtedCDKException - is thrown if the output
does not support the data in the objectpublic void close()
throws IOException
IChemObjectIOIOException - when the wrapper IO class cannot be closed.public boolean accepts(Class<? extends IChemObject> classObject)
IChemObjectIOIChemObject can be read or written.classObject - IChemObject of which is tested if it can be handled.IChemObject can be handled.public IResourceFormat getFormat()
IChemObjectIOIResourceFormat class for this IO class.public void setWriter(OutputStream writer) throws CDKException
IChemObjectWriterCDKExceptionpublic void setWriter(Writer writer) throws CDKException
IChemObjectWriterCDKExceptionCopyright © 2021. All rights reserved.