|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.BaseCompoundFile | +--jxl.write.biff.CompoundFile
Writes out a compound file Header block is -1 Excel data is e..n (where is the head extension blocks, normally 0 and n is at least 8) Summary information (8 blocks) Document summary (8 blocks) BBD is block p..q (where p=e+n+16 and q-p+1 is the number of BBD blocks) Property storage block is q+b...r (normally 1 block) (where b is the number of BBD blocks)
Inner classes inherited from class jxl.biff.BaseCompoundFile |
BaseCompoundFile.PropertyStorage |
Field Summary | |
private int |
bbdPos
The current position within the bbd. |
private int |
bbdStartBlock
The start block of the big block depot |
private byte[] |
bigBlockDepot
The current bbd block |
private byte[] |
excelData
The organized biff records which form the actual excel data |
private int |
excelDataBlocks
The number of blocks it takes to store the excel data |
private int |
excelDataStartBlock
The start block of the excel data |
private int |
extensionBlock
The extension block for the header |
private int |
numBigBlockDepotBlocks
The number of blocks it takes to store the big block depot |
private int |
numExtensionBlocks
The number of extension blocks required for the header to describe the BBD |
private java.io.OutputStream |
out
The stream to which the jumbled up data is written to |
private int |
requiredSize
The size the excel data should be in order to comply with the general compound file format |
private int |
rootStartBlock
The start block of the root entry |
private int |
size
The size of the array |
Constructor Summary | |
CompoundFile(byte[] data,
int l,
java.io.OutputStream os)
Constructor |
Method Summary | |
private void |
checkBbdPos()
Checks that the data can fit into the current BBD block. |
void |
write()
Writes out the excel file in OLE compound file format |
private void |
writeBigBlockDepot()
Writes out the Big Block Depot |
private void |
writeExcelData()
Writes out the excel data, padding it out with empty bytes as necessary |
private void |
writeHeader()
Writes the compound file header |
private void |
writePropertySets()
Writes out the property sets |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.io.OutputStream out
private byte[] excelData
private int size
private int requiredSize
private int numBigBlockDepotBlocks
private int numExtensionBlocks
private int extensionBlock
private int excelDataBlocks
private int rootStartBlock
private int excelDataStartBlock
private int bbdStartBlock
private int bbdPos
private byte[] bigBlockDepot
Constructor Detail |
public CompoundFile(byte[] data, int l, java.io.OutputStream os)
l
- the length of the dataos
- the output stream to write todata
- the excel dataMethod Detail |
public void write() throws java.io.IOException
java.io.IOException
- private void writeExcelData() throws java.io.IOException
java.io.IOException
- private void writeHeader() throws java.io.IOException
java.io.IOException
- private void checkBbdPos() throws java.io.IOException
java.io.IOException
- private void writeBigBlockDepot() throws java.io.IOException
java.io.IOException
- private void writePropertySets() throws java.io.IOException
java.io.IOException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |