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 is) |
static OPCPackage |
open(InputStream stream,
boolean closeStream) |
public static OPCPackage open(InputStream is) throws IOException
IOExceptionpublic static OPCPackage open(InputStream stream, boolean closeStream) throws IOException
stream - closeStream - whether to close the stream (default is false)IOException@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