Package org.apache.poi.ooxml.dev
Class OOXMLLister
- java.lang.Object
-
- org.apache.poi.ooxml.dev.OOXMLLister
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class OOXMLLister extends Object implements Closeable
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
Constructors Constructor Description OOXMLLister(OPCPackage container)OOXMLLister(OPCPackage container, PrintStream disp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddisplayParts()Displays information on all the different parts of the OOXML file container.voiddisplayRelations()Displays 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 voidmain(String[] args)
-
-
-
Constructor Detail
-
OOXMLLister
public OOXMLLister(OPCPackage container)
-
OOXMLLister
public OOXMLLister(OPCPackage container, PrintStream disp)
-
-
Method Detail
-
getSize
public static long getSize(PackagePart part) throws IOException
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
public void displayParts() throws InvalidFormatException, IOExceptionDisplays 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
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
main
public static void main(String[] args) throws IOException, InvalidFormatException
- Throws:
IOExceptionInvalidFormatException
-
-