ambit2.core.io
Class FilesWithHeaderWriter

Package class diagram package FilesWithHeaderWriter
java.lang.Object
  extended by org.openscience.cdk.io.DefaultChemObjectWriter
      extended by 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


Field Summary
static java.lang.String defaultSMILESHeader
           
protected  java.util.ArrayList header
           
protected static org.openscience.cdk.tools.LoggingTool logger
           
protected  int smilesIndex
           
protected  boolean writingStarted
           
 
Constructor Summary
FilesWithHeaderWriter()
           
 
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
 

Field Detail

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
Constructor Detail

FilesWithHeaderWriter

public FilesWithHeaderWriter()
Method Detail

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.