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, removeChemObjectIOListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
public Mopac7Writer() throws IOException
IOException
public Mopac7Writer(OutputStream out) throws IOException
OutputStream
.out
- OutputStream
to which the output is writtenIOException
public Mopac7Writer(Writer out) throws IOException
Writer
.out
- Writer
to which the output is writtenIOException
public 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
IChemObjectIO
IOException
- when the wrapper IO class cannot be closed.public boolean accepts(Class<? extends IChemObject> classObject)
IChemObjectIO
IChemObject
can be read or written.classObject
- IChemObject
of which is tested if it can be handled.IChemObject
can be handled.public IResourceFormat getFormat()
IChemObjectIO
IResourceFormat
class for this IO class.public void setWriter(OutputStream writer) throws CDKException
IChemObjectWriter
CDKException
public void setWriter(Writer writer) throws CDKException
IChemObjectWriter
CDKException
Copyright © 2021. All rights reserved.