|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.BaseCompoundFile | +--jxl.read.biff.CompoundFile
Reads in and defrags an OLE compound compound file (Made public only for the PropertySets demo)
Inner classes inherited from class jxl.biff.BaseCompoundFile |
BaseCompoundFile.PropertyStorage |
Field Summary | |
private int[] |
bigBlockChain
The sequence of blocks which comprise the big block chain |
private int[] |
bigBlockDepotBlocks
The chain of blocks which comprise the big block depot |
private byte[] |
data
The original OLE stream, organized into blocks, which can appear at any physical location in the file |
private int |
extensionBlock
The header extension block |
private int |
numBigBlockDepotBlocks
The number of blocks it takes to store the big block depot |
private int |
numExtensionBlocks
The number of header extension blocks |
private java.util.ArrayList |
propertySets
The list of property sets |
private byte[] |
rootEntry
The root entry |
private int |
rootStartBlock
The start block of the root entry |
private int |
sbdStartBlock
The start block of the small block depot |
private int[] |
smallBlockChain
The sequence of blocks which comprise the small block chain |
Constructor Summary | |
CompoundFile(byte[] d)
Initializes the compound file |
Method Summary | |
private byte[] |
getBigBlockStream(BaseCompoundFile.PropertyStorage ps)
Build up the resultant stream using the big blocks |
java.lang.String[] |
getPropertySetNames()
Gets the property sets |
private BaseCompoundFile.PropertyStorage |
getPropertyStorage(java.lang.String name)
Gets the property set with the specified name |
private byte[] |
getSmallBlockStream(BaseCompoundFile.PropertyStorage ps)
Build up the resultant stream using the small blocks |
byte[] |
getStream(java.lang.String streamName)
Gets the defragmented stream from this ole compound file |
private void |
readBigBlockDepot()
Reads the big block depot entries |
private byte[] |
readData(int bl)
Reads the block chain from the specified block and returns the data as a continuous stream of bytes |
private void |
readPropertySets()
Reads all the property sets |
private void |
readSmallBlockDepot()
Reads the small block depot entries |
Methods inherited from class java.lang.Object |
|
Field Detail |
private byte[] data
private int numBigBlockDepotBlocks
private int sbdStartBlock
private int rootStartBlock
private int extensionBlock
private int numExtensionBlocks
private byte[] rootEntry
private int[] bigBlockChain
private int[] smallBlockChain
private int[] bigBlockDepotBlocks
private java.util.ArrayList propertySets
Constructor Detail |
public CompoundFile(byte[] d) throws BiffException
d
- the raw data of the ole streamMethod Detail |
private void readBigBlockDepot()
private void readSmallBlockDepot()
private void readPropertySets()
public byte[] getStream(java.lang.String streamName) throws BiffException
streamName
- the stream name to getprivate BaseCompoundFile.PropertyStorage getPropertyStorage(java.lang.String name) throws BiffException
private byte[] getBigBlockStream(BaseCompoundFile.PropertyStorage ps)
ps
- the property storageprivate byte[] getSmallBlockStream(BaseCompoundFile.PropertyStorage ps) throws BiffException
private byte[] readData(int bl)
public java.lang.String[] getPropertySetNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |