| Modifier and Type | Method and Description |
|---|---|
static boolean |
areDirectoriesIdentical(DirectoryEntry dirA,
DirectoryEntry dirB)
Checks to see if the two Directories hold the same contents.
|
static boolean |
areDocumentsIdentical(DocumentEntry docA,
DocumentEntry docB)
Compares two
DocumentEntry instances of a POI file system. |
static void |
copyNodeRecursively(Entry entry,
DirectoryEntry target)
Copies an Entry into a target POIFS directory, recursively
|
static void |
copyNodes(DirectoryEntry sourceRoot,
DirectoryEntry targetRoot)
Copies all the nodes from one POIFS Directory to another
|
static void |
copyNodes(POIFSFileSystem source,
POIFSFileSystem target)
Copies all nodes from one POIFS to the other
|
static void |
copyNodes(POIFSFileSystem source,
POIFSFileSystem target,
List<String> excepts)
Copies nodes from one POIFS to the other, minus the excepts.
|
@Internal public static void copyNodeRecursively(Entry entry, DirectoryEntry target) throws IOException
IOExceptionpublic static void copyNodes(DirectoryEntry sourceRoot, DirectoryEntry targetRoot) throws IOException
sourceRoot - is the source Directory to copy fromtargetRoot - is the target Directory to copy toIOExceptionpublic static void copyNodes(POIFSFileSystem source, POIFSFileSystem target) throws IOException
source - is the source POIFS to copy fromtarget - is the target POIFS to copy toIOExceptionpublic static void copyNodes(POIFSFileSystem source, POIFSFileSystem target, List<String> excepts) throws IOException
FilteringDirectoryNode,
so excepts can be of the form "NodeToExclude" or
"FilteringDirectory/ExcludedChildNode"source - is the source POIFS to copy fromtarget - is the target POIFS to copy toexcepts - is a list of Entry Names to be excluded from the copyIOExceptionpublic static boolean areDirectoriesIdentical(DirectoryEntry dirA, DirectoryEntry dirB)
FilteringDirectoryNodepublic static boolean areDocumentsIdentical(DocumentEntry docA, DocumentEntry docB) throws IOException
DocumentEntry instances of a POI file system.
Documents that are not property set streams must be bitwise identical.
Property set streams must be logically equal.(Their parent directories are not checked)
IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved