public final class MDLV3000Writer extends DefaultChemObjectWriter
| Constructor and Description |
|---|
MDLV3000Writer()
Default empty constructor.
|
MDLV3000Writer(OutputStream out)
Create a new V3000 writer, output to the provided JDK output stream.
|
MDLV3000Writer(Writer writer)
Create a new V3000 writer, output to the provided JDK writer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> c)
Returns whether the given
IChemObject can be read or written. |
void |
close()
Closes this IChemObjectIO's resources.
|
void |
customizeJob() |
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 object)
Writes a molecule to the V3000 format.
|
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 MDLV3000Writer(Writer writer)
writer - output locationpublic MDLV3000Writer(OutputStream out) throws CDKException
out - output locationCDKExceptionpublic MDLV3000Writer()
public void write(IChemObject object) throws CDKException
object - the object of which the content is outputtedCDKException - state exception (e.g undef bonds), unsupported format feature,
object not supported etcpublic void setWriter(Writer writer) throws CDKException
CDKExceptionpublic void setWriter(OutputStream writer) throws CDKException
CDKExceptionpublic IResourceFormat getFormat()
IResourceFormat class for this IO class.public boolean accepts(Class<? extends IChemObject> c)
IChemObject can be read or written.c - IChemObject of which is tested if it can be handled.IChemObject can be handled.public void close()
throws IOException
IOException - when the wrapper IO class cannot be closed.public void customizeJob()
Copyright © 2021. All rights reserved.