public abstract class FileWithHeaderWriter
extends org.openscience.cdk.io.DefaultChemObjectWriter
Modifier and Type | Field and Description |
---|---|
static String |
defaultSMILESHeader |
protected ambit2.core.io.Header |
header |
protected static Logger |
logger |
protected org.openscience.cdk.smiles.SmilesGenerator |
sg |
protected int |
smilesIndex |
protected boolean |
writingStarted |
Constructor and Description |
---|
FileWithHeaderWriter() |
Modifier and Type | Method and Description |
---|---|
ambit2.core.io.Header |
getHeader() |
void |
setHeader(ArrayList header) |
void |
setHeader(Map properties)
Creates header from Hashtable keys
Used for default header - created from properties of the first molecule written
|
void |
write(org.openscience.cdk.interfaces.IChemObject object) |
protected abstract void |
writeHeader() |
abstract void |
writeMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule) |
void |
writeSetOfMolecules(org.openscience.cdk.interfaces.IAtomContainerSet som) |
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
protected static Logger logger
protected ambit2.core.io.Header header
protected int smilesIndex
protected org.openscience.cdk.smiles.SmilesGenerator sg
public static String defaultSMILESHeader
protected boolean writingStarted
public void write(org.openscience.cdk.interfaces.IChemObject object) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
protected abstract void writeHeader() throws IOException
IOException
public ambit2.core.io.Header getHeader()
public void setHeader(ArrayList header)
header
- The header to set.public void setHeader(Map properties)
properties
- public abstract void writeMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule)
public void writeSetOfMolecules(org.openscience.cdk.interfaces.IAtomContainerSet som)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.