Package loci.poi.poifs.storage
Class HeaderBlockReader
- java.lang.Object
-
- loci.poi.poifs.storage.HeaderBlockReader
-
- All Implemented Interfaces:
HeaderBlockConstants
public class HeaderBlockReader extends java.lang.Object implements HeaderBlockConstants
The block containing the archive header- Author:
- Marc Johnson (mjohnson at apache dot org)
-
-
Field Summary
-
Fields inherited from interface loci.poi.poifs.storage.HeaderBlockConstants
_bat_array_offset, _bat_count_offset, _property_start_offset, _sbat_block_count_offset, _sbat_start_offset, _signature, _signature_offset, _xbat_count_offset, _xbat_start_offset
-
-
Constructor Summary
Constructors Constructor Description HeaderBlockReader(java.io.InputStream stream, int blockSize)create a new HeaderBlockReader from an InputStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getBATArray()intgetBATCount()intgetPropertyStart()get start of Property TableintgetSBATStart()intgetXBATCount()intgetXBATIndex()
-
-
-
Constructor Detail
-
HeaderBlockReader
public HeaderBlockReader(java.io.InputStream stream, int blockSize) throws java.io.IOExceptioncreate a new HeaderBlockReader from an InputStream- Parameters:
stream- the source InputStreamblockSize- the size of a big block- Throws:
java.io.IOException- on errors or bad data
-
-
Method Detail
-
getPropertyStart
public int getPropertyStart()
get start of Property Table- Returns:
- the index of the first block of the Property Table
-
getSBATStart
public int getSBATStart()
- Returns:
- start of small block allocation table
-
getBATCount
public int getBATCount()
- Returns:
- number of BAT blocks
-
getBATArray
public int[] getBATArray()
- Returns:
- BAT array
-
getXBATCount
public int getXBATCount()
- Returns:
- XBAT count
-
getXBATIndex
public int getXBATIndex()
- Returns:
- XBAT index
-
-