jxl.write.biff
Class File

java.lang.Object
  extended byjxl.write.biff.File

public final class File
extends java.lang.Object

A file of excel data to be written out. All the excel data is held in memory, and when the close method is called a CompoundFile object is used to write the Biff oriented excel data in the CompoundFile format


Method Summary
 void setOutputFile(java.io.OutputStream os)
          Sets a new output file.
 void write(ByteData record)
          Adds the biff record data to the memory allocated for this File
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public void write(ByteData record)
           throws java.io.IOException
Adds the biff record data to the memory allocated for this File

Parameters:
record - the record to add to the excel data
Throws:
java.io.IOException

setOutputFile

public void setOutputFile(java.io.OutputStream os)
Sets a new output file. This allows the smae workbook to be written to various different output files without having to read in any templates again

Parameters:
os - the output stream