relax requirements for POIUtils arguments (replace classes with interfaces)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-08-22 08:53:16 +00:00
parent 6afe2d988c
commit c3235cc745
1 changed files with 3 additions and 3 deletions

View 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() )