Package org.apache.poi.ooxml.dev
Class OOXMLLister
java.lang.Object
org.apache.poi.ooxml.dev.OOXMLLister
- All Implemented Interfaces:
Closeable,AutoCloseable
Prints out the contents of a OOXML container.
Useful for seeing what parts are defined, and how
they're all related to each other.
-
Constructor Summary
ConstructorsConstructorDescriptionOOXMLLister(OPCPackage container) OOXMLLister(OPCPackage container, PrintStream disp) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidDisplays information on all the different parts of the OOXML file container.voidDisplays information on all the different relationships between different parts of the OOXML file container.static longgetSize(PackagePart part) Figures out how big a given PackagePart is.static void
-
Constructor Details
-
OOXMLLister
-
OOXMLLister
-
-
Method Details
-
getSize
Figures out how big a given PackagePart is.- Parameters:
part- the PackagePart- Returns:
- the size of the PackagePart
- Throws:
IOException- if the part can't be read
-
displayParts
Displays information on all the different parts of the OOXML file container.- Throws:
InvalidFormatException- if the package relations are invalidIOException- if the package can't be read
-
displayRelations
public void displayRelations()Displays information on all the different relationships between different parts of the OOXML file container. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
main
- Throws:
IOExceptionInvalidFormatException
-