Package org.apache.poi.ooxml.util
Class PackageHelper
java.lang.Object
org.apache.poi.ooxml.util.PackageHelper
Provides handy methods to work with OOXML packages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OPCPackageopen(InputStream stream) static OPCPackageopen(InputStream stream, boolean closeStream)
-
Constructor Details
-
PackageHelper
public PackageHelper()
-
-
Method Details
-
open
- Parameters:
stream- The InputStream to read from - which is closed when it is read- Returns:
- OPCPackage
- Throws:
IOException- If reading data from the stream failsPOIXMLException- If the stream is not a valid OPC package
-
open
- Parameters:
stream- The InputStream to read fromcloseStream- whether to close the stream- Returns:
- OPCPackage
- Throws:
IOException- If reading data from the stream failsPOIXMLException- If the stream is not a valid OPC package- Since:
- 5.2.0
-