@Internal public final class EntryUtils extends java.lang.Object
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.
(比较 POI 文件系统的两个 DocumentEntry 实例。)
|
static void |
copyNodeRecursively(Entry entry, DirectoryEntry target)
Copies an Entry into a target POIFS directory, recursively
(以递归方式将条目复制到目标 POIFS 目录中)
|
static void |
copyNodes(DirectoryEntry sourceRoot, DirectoryEntry targetRoot)
Copies all the nodes from one POIFS Directory to another
(将所有节点从一个 POIFS 目录复制到另一个)
|
static void |
copyNodes(POIFSFileSystem source, POIFSFileSystem target)
Copies all nodes from one POIFS to the other
(将所有节点从一个 POIFS 复制到另一个)
|
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.
(将节点从一个 POIFS 复制到另一个,减去例外。)
|
@Internal public static void copyNodeRecursively(Entry entry, DirectoryEntry target) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public static void copyNodes(DirectoryEntry sourceRoot, DirectoryEntry targetRoot) throws java.io.IOException
sourceRoot
- is the source Directory to copy from
(sourceRoot - 是要从中复制的源目录)
targetRoot
- is the target Directory to copy to
(targetRoot - 是要复制到的目标目录)
java.io.IOException
(java.io.IOException)
public static void copyNodes(POIFSFileSystem source, POIFSFileSystem target) throws java.io.IOException
source
- is the source POIFS to copy from
(source - 是要从中复制的源 POIFS)
target
- is the target POIFS to copy to
(target - 是要复制到的目标 POIFS)
java.io.IOException
(java.io.IOException)
public static void copyNodes(POIFSFileSystem source, POIFSFileSystem target, java.util.List<java.lang.String> excepts) throws java.io.IOException
FilteringDirectoryNode
, so excepts can be of the form "NodeToExclude" or "FilteringDirectory/ExcludedChildNode"
(将节点从一个 POIFS 复制到另一个,减去例外。这会将过滤工作委托给 FilteringDirectoryNode,因此异常可以采用“NodeToExclude”或“FilteringDirectory/ExcludedChildNode”的形式)
source
- is the source POIFS to copy from
(source - 是要从中复制的源 POIFS)
target
- is the target POIFS to copy to
(target - 是要复制到的目标 POIFS)
excepts
- is a list of Entry Names to be excluded from the copy
(excepts - 是要从副本中排除的条目名称列表)
java.io.IOException
(java.io.IOException)
public static boolean areDirectoriesIdentical(DirectoryEntry dirA, DirectoryEntry dirB)
FilteringDirectoryNode
(检查两个目录是否包含相同的内容。要做到这一点...它们必须具有相同名称的条目 一个条目中没有条目,另一个条目中没有条目 每个条目的大小+内容必须匹配 目录的存储 classid 必须匹配 排除目录的某些部分检查,使用 FilteringDirectoryNode)
public static boolean areDocumentsIdentical(DocumentEntry docA, DocumentEntry docB) throws java.io.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)
(比较 POI 文件系统的两个 DocumentEntry 实例。不是属性集流的文档必须按位相同。属性集流必须在逻辑上相等。 (不检查它们的父目录))java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.