org.apache.poi.util
Class PackageHelper

java.lang.Object
  extended by org.apache.poi.util.PackageHelper

public class PackageHelper
extends java.lang.Object

Provides handy methods to work with OOXML packages

Author:
Yegor Kozlov

Constructor Summary
PackageHelper()
           
 
Method Summary
static org.openxml4j.opc.Package clone(org.openxml4j.opc.Package pkg)
          Clone the specified package.
static org.openxml4j.opc.Package clone(org.openxml4j.opc.Package pkg, java.io.File file)
          Clone the specified package.
static java.io.File createTempFile()
          Creates an empty file in the default temporary-file directory,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageHelper

public PackageHelper()
Method Detail

clone

public static org.openxml4j.opc.Package clone(org.openxml4j.opc.Package pkg)
                                       throws org.openxml4j.exceptions.OpenXML4JException,
                                              java.io.IOException
Clone the specified package.

Parameters:
pkg - the package to clone
Returns:
the cloned package
Throws:
org.openxml4j.exceptions.OpenXML4JException
java.io.IOException

clone

public static org.openxml4j.opc.Package clone(org.openxml4j.opc.Package pkg,
                                              java.io.File file)
                                       throws org.openxml4j.exceptions.OpenXML4JException,
                                              java.io.IOException
Clone the specified package.

Parameters:
pkg - the package to clone
file - the destination file
Returns:
the cloned package
Throws:
org.openxml4j.exceptions.OpenXML4JException
java.io.IOException

createTempFile

public static java.io.File createTempFile()
                                   throws java.io.IOException
Creates an empty file in the default temporary-file directory,

Throws:
java.io.IOException


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.