public final class PackageHelper
extends java.lang.Object
Constructor and Description |
---|
PackageHelper() |
Modifier and Type | Method and Description |
---|---|
static OPCPackage |
clone(OPCPackage pkg,
java.io.File file)
Deprecated.
this method is not used internally and creates temp files that are not well handled
|
static OPCPackage |
open(java.io.InputStream is) |
static OPCPackage |
open(java.io.InputStream stream,
boolean closeStream) |
public static OPCPackage open(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static OPCPackage open(java.io.InputStream stream, boolean closeStream) throws java.io.IOException
stream
- The InputStream to read fromcloseStream
- whether to close the stream (default is false)java.io.IOException
- If reading data from the stream fails@Deprecated @Removal(version="6.0.0") public static OPCPackage clone(OPCPackage pkg, java.io.File file) throws OpenXML4JException, java.io.IOException
pkg
- the package to clonefile
- the destination fileOpenXML4JException
java.io.IOException
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.