org.apache.poi.poifs.storage
Class HeaderBlockReader
java.lang.Object
org.apache.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)
Constructor Summary |
HeaderBlockReader(java.io.InputStream stream)
create a new HeaderBlockReader from an InputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeaderBlockReader
public HeaderBlockReader(java.io.InputStream stream)
throws java.io.IOException
- create a new HeaderBlockReader from an InputStream
- Parameters:
stream
- the source InputStream
- Throws:
java.io.IOException
- on errors or bad data
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
getBigBlockSize
public int getBigBlockSize()
- Returns:
- The Big Block size, normally 512 bytes, sometimes 4096 bytes
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.