public final class PackageHelper extends Object
| Constructor and Description |
|---|
PackageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static OPCPackage |
clone(OPCPackage pkg,
File file)
Deprecated.
this method is not used internally and creates temp files that are not well handled
|
static OPCPackage |
open(InputStream stream) |
static OPCPackage |
open(InputStream stream,
boolean closeStream) |
public static OPCPackage open(InputStream stream) throws IOException
stream - The InputStream to read from - which is closed when it is readIOException - If reading data from the stream failsPOIXMLException - If the stream is not a valid OPC packagepublic static OPCPackage open(InputStream stream, boolean closeStream) throws IOException
stream - The InputStream to read fromcloseStream - whether to close the streamIOException - If reading data from the stream failsPOIXMLException - If the stream is not a valid OPC package@Deprecated @Removal(version="6.0.0") public static OPCPackage clone(OPCPackage pkg, File file) throws OpenXML4JException, IOException
pkg - the package to clonefile - the destination fileOpenXML4JExceptionIOException