ambit2.core.io
Class XLSFileWriter
java.lang.Object
org.openscience.cdk.io.DefaultChemObjectWriter
ambit2.core.io.FileWithHeaderWriter
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
|
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 |
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
XLSFileWriter
public XLSFileWriter(java.io.OutputStream out)
throws java.lang.Exception
- Throws:
java.lang.Exception
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