org.apache.poi.util
Class POIUtils

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

@Internal
public class POIUtils
extends java.lang.Object


Constructor Summary
POIUtils()
           
 
Method Summary
static void copyNodeRecursively(Entry entry, DirectoryEntry target)
          Copies an Entry into a target POIFS directory, recursively
static void copyNodes(DirectoryEntry sourceRoot, DirectoryEntry targetRoot, java.util.List<java.lang.String> excepts)
          Copies nodes from one POIFS to the other minus the excepts
static void copyNodes(POIFSFileSystem source, POIFSFileSystem target, java.util.List<java.lang.String> excepts)
          Copies nodes from one POIFS to the other minus the excepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POIUtils

public POIUtils()
Method Detail

copyNodeRecursively

@Internal
public static void copyNodeRecursively(Entry entry,
                                                DirectoryEntry target)
                                throws java.io.IOException
Copies an Entry into a target POIFS directory, recursively

Throws:
java.io.IOException

copyNodes

public static void copyNodes(DirectoryEntry sourceRoot,
                             DirectoryEntry targetRoot,
                             java.util.List<java.lang.String> excepts)
                      throws java.io.IOException
Copies nodes from one POIFS to the other minus the excepts

Parameters:
source - is the source POIFS to copy from
target - is the target POIFS to copy to
excepts - is a list of Strings specifying what nodes NOT to copy
Throws:
java.io.IOException

copyNodes

public static void copyNodes(POIFSFileSystem source,
                             POIFSFileSystem target,
                             java.util.List<java.lang.String> excepts)
                      throws java.io.IOException
Copies nodes from one POIFS to the other minus the excepts

Parameters:
source - is the source POIFS to copy from
target - is the target POIFS to copy to
excepts - is a list of Strings specifying what nodes NOT to copy
Throws:
java.io.IOException


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