Class POIFSHeaderDumper
java.lang.Object
org.docx4j.org.apache.poi.poifs.dev.POIFSHeaderDumper
public class POIFSHeaderDumper
extends java.lang.Object
A very low level debugging tool, for printing out core
information on the headers and FAT blocks.
You probably only want to use this if you're trying
to understand POIFS, or if you're trying to track
down the source of corruption in a file.
-
Constructor Summary
Constructors Constructor Description POIFSHeaderDumper() -
Method Summary
Modifier and Type Method Description static voiddisplayBATReader(java.lang.String type, BlockAllocationTableReader batReader)static voiddisplayHeader(HeaderBlock header_block)static voiddisplayProperties(DirectoryProperty prop, java.lang.String indent)static voiddisplayPropertiesSummary(PropertyTable properties)static voiddisplayRawBlocksSummary(RawDataBlockList data_blocks)static voidmain(java.lang.String[] args)Display the entries of multiple POIFS filesstatic voidviewFile(java.lang.String filename)
-
Constructor Details
-
POIFSHeaderDumper
public POIFSHeaderDumper()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionDisplay the entries of multiple POIFS files- Parameters:
args- the names of the files to be displayed- Throws:
java.lang.Exception
-
viewFile
public static void viewFile(java.lang.String filename) throws java.lang.Exception- Throws:
java.lang.Exception
-
displayHeader
- Throws:
java.lang.Exception
-
displayRawBlocksSummary
public static void displayRawBlocksSummary(RawDataBlockList data_blocks) throws java.lang.Exception- Throws:
java.lang.Exception
-
displayBATReader
public static void displayBATReader(java.lang.String type, BlockAllocationTableReader batReader) throws java.lang.Exception- Throws:
java.lang.Exception
-
displayPropertiesSummary
-
displayProperties
-