]> source.dussan.org Git - poi.git/commitdiff
relax requirements for POIUtils arguments (replace classes with interfaces)
authorSergey Vladimirov <sergey@apache.org>
Mon, 22 Aug 2011 08:53:16 +0000 (08:53 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 22 Aug 2011 08:53:16 +0000 (08:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160150 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/util/POIUtils.java

index fa057bc572133ba90fee8b33087c0cb6bb7debae..3686644475be1ae253eef17cb4449eb759138cc0 100644 (file)
@@ -21,7 +21,6 @@ import java.util.Iterator;
 import java.util.List;
 
 import org.apache.poi.poifs.filesystem.DirectoryEntry;
-import org.apache.poi.poifs.filesystem.DirectoryNode;
 import org.apache.poi.poifs.filesystem.DocumentEntry;
 import org.apache.poi.poifs.filesystem.DocumentInputStream;
 import org.apache.poi.poifs.filesystem.Entry;
@@ -70,8 +69,9 @@ public class POIUtils
      * @param excepts
      *            is a list of Strings specifying what nodes NOT to copy
      */
-    public static void copyNodes( DirectoryNode sourceRoot,
-            DirectoryNode targetRoot, List<String> excepts ) throws IOException
+    public static void copyNodes( DirectoryEntry sourceRoot,
+            DirectoryEntry targetRoot, List<String> excepts )
+            throws IOException
     {
         Iterator<Entry> entries = sourceRoot.getEntries();
         while ( entries.hasNext() )