public class OOXMLLister
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
OOXMLLister(OPCPackage container) |
OOXMLLister(OPCPackage container,
java.io.PrintStream disp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
displayParts()
Displays information on all the different
parts of the OOXML file container.
|
void |
displayRelations()
Displays information on all the different
relationships between different parts
of the OOXML file container.
|
static long |
getSize(PackagePart part)
Figures out how big a given PackagePart is.
|
static void |
main(java.lang.String[] args) |
public OOXMLLister(OPCPackage container)
public OOXMLLister(OPCPackage container, java.io.PrintStream disp)
public static long getSize(PackagePart part) throws java.io.IOException
part - the PackagePartjava.io.IOException - if the part can't be readpublic void displayParts()
throws InvalidFormatException,
java.io.IOException
InvalidFormatException - if the package relations are invalidjava.io.IOException - if the package can't be readpublic void displayRelations()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException,
InvalidFormatException
java.io.IOExceptionInvalidFormatExceptionCopyright 2021 The Apache Software Foundation or its licensors, as applicable.