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.
(显示有关 OOXML 文件容器的所有不同部分的信息。)
|
void |
displayRelations()
Displays information on all the different relationships between different parts of the OOXML file container.
(显示有关 OOXML 文件容器不同部分之间所有不同关系的信息。)
|
static long |
getSize(PackagePart part)
Figures out how big a given PackagePart is.
(计算出给定的 PackagePart 有多大。)
|
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 PackagePart
(部分 - PackagePart)
java.io.IOException
- if the part can't be read
(java.io.IOException - 如果该部分无法读取)
public void displayParts() throws InvalidFormatException, java.io.IOException
InvalidFormatException
- if the package relations are invalid
(InvalidFormatException - 如果包关系无效)
java.io.IOException
- if the package can't be read
(java.io.IOException - 如果无法读取包)
public void displayRelations()
public void close() throws java.io.IOException
close
in interface
java.io.Closeable
(在接口 java.io.Closeable 中关闭)
close
in interface
java.lang.AutoCloseable
(在接口 java.lang.AutoCloseable 中关闭)
java.io.IOException
(java.io.IOException)
public static void main(java.lang.String[] args) throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.