|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.poifs.storage.HeaderBlock
public final class HeaderBlock
The block containing the archive header
Field Summary |
---|
Fields inherited from interface org.apache.poi.poifs.storage.HeaderBlockConstants |
---|
_bat_array_offset, _bat_count_offset, _max_bats_in_header, _property_start_offset, _sbat_block_count_offset, _sbat_start_offset, _signature, _signature_offset, _xbat_count_offset, _xbat_start_offset |
Constructor Summary | |
---|---|
HeaderBlock(java.nio.ByteBuffer buffer)
|
|
HeaderBlock(java.io.InputStream stream)
create a new HeaderBlockReader from an InputStream |
|
HeaderBlock(POIFSBigBlockSize bigBlockSize)
Create a single instance initialized with default values |
Method Summary | |
---|---|
int[] |
getBATArray()
Returns the offsets to the first (up to) 109 BAT sectors. |
int |
getBATCount()
|
POIFSBigBlockSize |
getBigBlockSize()
|
int |
getPropertyStart()
get start of Property Table |
int |
getSBATCount()
|
int |
getSBATStart()
|
int |
getXBATCount()
|
int |
getXBATIndex()
|
void |
setBATArray(int[] bat_array)
Sets the offsets of the first (up to) 109 BAT sectors. |
void |
setBATCount(int count)
Sets the number of BAT blocks that are used. |
void |
setPropertyStart(int startBlock)
Set start of Property Table |
void |
setSBATBlockCount(int count)
Set count of SBAT blocks |
void |
setSBATStart(int startBlock)
Set start of small block allocation table |
void |
setXBATCount(int count)
Sets the number of XBAT (DIFAT) blocks used |
void |
setXBATStart(int startBlock)
Sets the first XBAT (DIFAT) block location |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeaderBlock(java.io.InputStream stream) throws java.io.IOException
stream
- the source InputStream
java.io.IOException
- on errors or bad datapublic HeaderBlock(java.nio.ByteBuffer buffer) throws java.io.IOException
java.io.IOException
public HeaderBlock(POIFSBigBlockSize bigBlockSize)
Method Detail |
---|
public int getPropertyStart()
public void setPropertyStart(int startBlock)
startBlock
- the index of the first block of the Property Tablepublic int getSBATStart()
public int getSBATCount()
public void setSBATStart(int startBlock)
startBlock
- the index of the first big block of the small
block allocation tablepublic void setSBATBlockCount(int count)
count
- the number of SBAT blockspublic int getBATCount()
public void setBATCount(int count)
public int[] getBATArray()
public void setBATArray(int[] bat_array)
public int getXBATCount()
public void setXBATCount(int count)
public int getXBATIndex()
public void setXBATStart(int startBlock)
public POIFSBigBlockSize getBigBlockSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |