ambit2.core.io
Class XLSFileWriter

Package class diagram package XLSFileWriter
java.lang.Object
  extended by org.openscience.cdk.io.DefaultChemObjectWriter
      extended by ambit2.core.io.FileWithHeaderWriter
          extended by ambit2.core.io.XLSFileWriter
All Implemented Interfaces:
org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.IChemObjectWriter

public class XLSFileWriter
extends FileWithHeaderWriter


Field Summary
protected  org.apache.poi.hssf.usermodel.HSSFDataFormat dataformat
           
protected  java.io.OutputStream out
           
protected  org.apache.poi.hssf.usermodel.HSSFSheet sheet
           
protected  org.apache.poi.hssf.usermodel.HSSFCellStyle style
           
protected  org.apache.poi.hssf.usermodel.HSSFWorkbook workbook
           
protected  boolean writingStarted
           
 
Fields inherited from class ambit2.core.io.FileWithHeaderWriter
defaultSMILESHeader, header, logger, sg, smilesIndex
 
Constructor Summary
XLSFileWriter(java.io.OutputStream out)
           
 
Method Summary
 boolean accepts(java.lang.Class classObject)
           
 void close()
           
 org.openscience.cdk.io.formats.IResourceFormat getFormat()
           
 void setWriter(java.io.OutputStream arg0)
           
 void setWriter(java.io.Writer arg0)
           
 java.lang.String toString()
           
protected  void writeHeader()
           
 void writeMolecule(org.openscience.cdk.interfaces.IMolecule molecule)
           
 
Methods inherited from class ambit2.core.io.FileWithHeaderWriter
getHeader, highestSupportedChemObject, setHeader, setHeader, write, writeSetOfMolecules
 
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, wait, wait, wait
 

Field Detail

workbook

protected org.apache.poi.hssf.usermodel.HSSFWorkbook workbook

sheet

protected org.apache.poi.hssf.usermodel.HSSFSheet sheet

dataformat

protected org.apache.poi.hssf.usermodel.HSSFDataFormat dataformat

style

protected org.apache.poi.hssf.usermodel.HSSFCellStyle style

out

protected java.io.OutputStream out

writingStarted

protected boolean writingStarted
Constructor Detail

XLSFileWriter

public XLSFileWriter(java.io.OutputStream out)
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

writeHeader

protected void writeHeader()
                    throws java.io.IOException
Specified by:
writeHeader in class FileWithHeaderWriter
Throws:
java.io.IOException

writeMolecule

public void writeMolecule(org.openscience.cdk.interfaces.IMolecule molecule)
Specified by:
writeMolecule in class FileWithHeaderWriter

setWriter

public void setWriter(java.io.Writer arg0)
               throws org.openscience.cdk.exception.CDKException
Throws:
org.openscience.cdk.exception.CDKException

setWriter

public void setWriter(java.io.OutputStream arg0)
               throws org.openscience.cdk.exception.CDKException
Throws:
org.openscience.cdk.exception.CDKException

getFormat

public org.openscience.cdk.io.formats.IResourceFormat getFormat()

accepts

public boolean accepts(java.lang.Class classObject)

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object