public final class MDLV3000Writer extends DefaultChemObjectWriter
| Modifier and Type | Field and Description |
|---|---|
static NumberFormat |
DECIMAL_FORMAT |
static SimpleDateFormat |
HEADER_DATE_FORMAT |
| 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) |
void |
close() |
IResourceFormat |
getFormat() |
void |
setWriter(OutputStream writer) |
void |
setWriter(Writer writer) |
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 static final SimpleDateFormat HEADER_DATE_FORMAT
public static final NumberFormat DECIMAL_FORMAT
public MDLV3000Writer(Writer writer)
writer - output locationpublic MDLV3000Writer(OutputStream out) throws CDKException
out - output locationCDKExceptionpublic MDLV3000Writer()
public void write(IChemObject object) throws CDKException
CDKException - 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()
public boolean accepts(Class<? extends IChemObject> c)
public void close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.