public interface IHDF5ArchiveInfoProvider
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String path)
Returns
true , if an entry path exists in the archive. |
boolean |
isDirectory(java.lang.String path)
Returns
true , if a directory entry path exists in the archive. |
boolean |
isRegularFile(java.lang.String path)
Returns
true , if a regular file entry path exists in the archive. |
boolean |
isSymLink(java.lang.String path)
Returns
true , if a symbolic link entry path exists in the archive. |
java.util.List<ArchiveEntry> |
list()
Returns the list of all entries in the archive recursively.
|
java.util.List<ArchiveEntry> |
list(java.lang.String fileOrDir)
Returns the list of all entries below fileOrDir in the archive recursively.
|
IHDF5ArchiveInfoProvider |
list(java.lang.String fileOrDir,
IArchiveEntryVisitor visitor)
Returns the list of all entries below fileOrDir in the archive recursively.
|
IHDF5ArchiveInfoProvider |
list(java.lang.String fileOrDir,
IArchiveEntryVisitor visitor,
ListParameters params)
Returns the list of entries below fileOrDir in the archive.
|
java.util.List<ArchiveEntry> |
list(java.lang.String fileOrDir,
ListParameters params)
Returns the list of entries below fileOrDir in the archive.
|
java.util.List<ArchiveEntry> |
test()
Performs an integrity of the archive.
|
ArchiveEntry |
tryGetEntry(java.lang.String path,
boolean readLinkTarget)
Returns an archive entry for path, or
null , if the archive has no
archive entry for this path. |
ArchiveEntry |
tryGetResolvedEntry(java.lang.String path,
boolean keepPath)
Returns the archive entry for path.
|
ArchiveEntry |
tryResolveLink(ArchiveEntry entry)
Resolves the symbolic link of entry, if any.
|
boolean exists(java.lang.String path)
true
, if an entry path exists in the archive.path
- The path to obtain information for.boolean isDirectory(java.lang.String path)
true
, if a directory entry path exists in the archive.path
- The path to obtain information for.boolean isRegularFile(java.lang.String path)
true
, if a regular file entry path exists in the archive.path
- The path to obtain information for.boolean isSymLink(java.lang.String path)
true
, if a symbolic link entry path exists in the archive.path
- The path to obtain information for.ArchiveEntry tryGetEntry(java.lang.String path, boolean readLinkTarget)
null
, if the archive has no
archive entry for this path.path
- The path to obtain information for.readLinkTarget
- If true
and if the entry is a symbolic link entry, read
the link target.ArchiveEntry tryResolveLink(ArchiveEntry entry)
entry
- The archive entry to resolve.null
if entry is a symbolic link
that links to a non-existing target, or entry, if this is not a link.ArchiveEntry tryGetResolvedEntry(java.lang.String path, boolean keepPath)
null
, if
the link target doesn't exist.path
- The path in the archive to get the entry for.keepPath
- If true
, the resolved entry will keep the path, i.e.
the returned entry of a symlink will look like a hard link. If false
,
the returned entry will be the entry of the resolved path.null
if
path denotes a symbolic link that links to a non-existing target.java.util.List<ArchiveEntry> list()
java.util.List<ArchiveEntry> list(java.lang.String fileOrDir)
fileOrDir
- The file to list or the directory to list the entries from recursively.java.util.List<ArchiveEntry> list(java.lang.String fileOrDir, ListParameters params)
fileOrDir
- The file to list or the directory to list the entries from.params
- the parameters to modify the listing behavior.IHDF5ArchiveInfoProvider list(java.lang.String fileOrDir, IArchiveEntryVisitor visitor)
fileOrDir
- The file to list or the directory to list the entries from recursively.visitor
- The archive entry visitor to call for each entry.IHDF5ArchiveInfoProvider list(java.lang.String fileOrDir, IArchiveEntryVisitor visitor, ListParameters params)
fileOrDir
- The file to list or the directory to list the entries from.visitor
- The archive entry visitor to call for each entry.params
- the parameters to modify the listing behavior.java.util.List<ArchiveEntry> test()