ambit2.core.io
Class FilesWithHeaderWriter
java.lang.Object
org.openscience.cdk.io.DefaultChemObjectWriter
ambit2.core.io.FilesWithHeaderWriter
- All Implemented Interfaces:
- org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.IChemObjectWriter
- Direct Known Subclasses:
- DelimitedFileWriter, PDFWriter
public abstract class FilesWithHeaderWriter
- extends org.openscience.cdk.io.DefaultChemObjectWriter
Method Summary |
java.util.ArrayList |
getHeader()
|
void |
setHeader(java.util.ArrayList header)
|
void |
setHeader(java.util.Map properties)
Creates header from Hashtable keys
Used for default header - created from properties of the first molecule written |
protected abstract void |
writeHeader()
|
Methods inherited from class org.openscience.cdk.io.DefaultChemObjectWriter |
addChemObjectIOListener, fireIOSettingQuestion, getIOSettings, removeChemObjectIOListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openscience.cdk.io.IChemObjectWriter |
setWriter, setWriter, write |
Methods inherited from interface org.openscience.cdk.io.IChemObjectIO |
accepts, close, getFormat |
logger
protected static org.openscience.cdk.tools.LoggingTool logger
defaultSMILESHeader
public static java.lang.String defaultSMILESHeader
header
protected java.util.ArrayList header
writingStarted
protected boolean writingStarted
smilesIndex
protected int smilesIndex
FilesWithHeaderWriter
public FilesWithHeaderWriter()
getHeader
public java.util.ArrayList getHeader()
- Returns:
- Returns the header.
setHeader
public void setHeader(java.util.Map properties)
- Creates header from Hashtable keys
Used for default header - created from properties of the first molecule written
- Parameters:
properties
-
writeHeader
protected abstract void writeHeader()
throws java.io.IOException
- Throws:
java.io.IOException
setHeader
public void setHeader(java.util.ArrayList header)
- Parameters:
header
- The header to set.