public interface IHDF5Archiver extends IHDF5ArchiveReader
Modifier and Type | Method and Description |
---|---|
IHDF5Archiver |
archiveDirectory(NewArchiveEntry.NewDirectoryArchiveEntry entry)
Add a new directory to the archive.
|
IHDF5Archiver |
archiveDirectory(java.lang.String path)
Add a new directory to the archive.
|
IHDF5Archiver |
archiveFile(NewArchiveEntry.NewFileArchiveEntry entry,
byte[] data)
Archive the data as file in the archive.
|
IHDF5Archiver |
archiveFile(NewArchiveEntry.NewFileArchiveEntry entry,
java.io.InputStream input)
Archive the input as file in the archive.
|
IHDF5Archiver |
archiveFile(java.lang.String path,
byte[] data)
Archive the data as file in the archive.
|
IHDF5Archiver |
archiveFile(java.lang.String path,
java.io.InputStream input)
Archive the input as file in the archive.
|
ch.systemsx.cisd.base.io.IOutputStream |
archiveFileAsIOutputStream(NewArchiveEntry.NewFileArchiveEntry entry)
Return an
IOutputStream that can be used to write the content of a file into the
archive. |
java.io.OutputStream |
archiveFileAsOutputStream(NewArchiveEntry.NewFileArchiveEntry entry)
Return an
OutputStream that can be used to write the content of a file into the
archive. |
IHDF5Archiver |
archiveFromFilesystem(java.io.File path)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.io.File path,
ArchivingStrategy strategy)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.io.File path,
ArchivingStrategy strategy,
boolean keepNameFromPath,
IArchiveEntryVisitor visitor)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.io.File parentDirToStrip,
java.io.File path)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.io.File parentDirToStrip,
java.io.File path,
ArchivingStrategy strategy)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.io.File parentDirToStrip,
java.io.File path,
ArchivingStrategy strategy,
IArchiveEntryVisitor visitor)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.io.File path,
IArchiveEntryVisitor visitor)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.lang.String rootInArchive,
java.io.File path)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.lang.String rootInArchive,
java.io.File path,
ArchivingStrategy strategy)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystem(java.lang.String rootInArchive,
java.io.File path,
ArchivingStrategy strategy,
IArchiveEntryVisitor visitor)
Archive the path from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive,
java.io.File directory)
Archive the content below directory from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive,
java.io.File directory,
ArchivingStrategy strategy)
Archive the content below directory from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive,
java.io.File directory,
ArchivingStrategy strategy,
IArchiveEntryVisitor visitor)
Archive the content below directory from the filesystem.
|
IHDF5Archiver |
archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive,
java.io.File directory,
IArchiveEntryVisitor visitor)
Archive the content below directory from the filesystem.
|
IHDF5Archiver |
archiveSymlink(NewArchiveEntry.NewSymLinkArchiveEntry entry)
Add a new symbolic link to the archive.
|
IHDF5Archiver |
archiveSymlink(java.lang.String path,
java.lang.String linkTarget)
Add a new symbolic link to the archive.
|
IHDF5Archiver |
delete(java.util.List<java.lang.String> paths)
Deletes a list of paths from the archive.
|
IHDF5Archiver |
delete(java.util.List<java.lang.String> paths,
IArchiveEntryVisitor entryVisitorOrNull)
Deletes a list of paths from the archive.
|
IHDF5Archiver |
delete(java.lang.String path)
Deletes a path from the archive.
|
IHDF5Archiver |
extractFile(java.lang.String path,
java.io.OutputStream out)
Extract the content of a file in the archive to an
OutputStream . |
IHDF5Archiver |
extractToFilesystem(java.io.File rootDirectory)
Extracts the complete archive to the file system.
|
IHDF5Archiver |
extractToFilesystem(java.io.File rootDirectory,
java.lang.String path)
Extracts a path from the archive to the file system.
|
IHDF5Archiver |
extractToFilesystem(java.io.File rootDirectory,
java.lang.String path,
ArchivingStrategy strategy,
IArchiveEntryVisitor visitor)
Extracts a path from the archive to the file system.
|
IHDF5Archiver |
extractToFilesystem(java.io.File rootDirectory,
java.lang.String path,
IArchiveEntryVisitor visitor)
Extracts a path from the archive to the file system.
|
IHDF5Archiver |
extractToFilesystemBelowDirectory(java.io.File rootDirectory,
java.lang.String rootPathInArchive)
Extracts all paths below a given directory path from the archive to the file system.
|
IHDF5Archiver |
extractToFilesystemBelowDirectory(java.io.File rootDirectory,
java.lang.String rootPathInArchive,
ArchivingStrategy strategy,
IArchiveEntryVisitor visitorOrNull)
Extracts all paths below a given directory path from the archive to the file system.
|
IHDF5Archiver |
extractToFilesystemBelowDirectory(java.io.File rootDirectory,
java.lang.String rootPathInArchive,
IArchiveEntryVisitor visitorOrNull)
Extracts all paths below a given directory path from the archive to the file system.
|
IHDF5Archiver |
extractToFilesystemBelowDirectory(java.io.File rootDirectory,
java.lang.String rootPathInArchive,
java.lang.String path,
ArchivingStrategy strategy,
IArchiveEntryVisitor visitorOrNull)
Extracts a path from the archive below a given directory path to the file system.
|
void |
flush()
Flush the underlying HDF5 writer.
|
IHDF5Archiver |
list(java.lang.String fileOrDir,
IArchiveEntryVisitor visitor)
Returns the list of all entries below fileOrDir in the archive recursively.
|
IHDF5Archiver |
list(java.lang.String fileOrDir,
IArchiveEntryVisitor visitor,
ListParameters params)
Returns the list of entries below fileOrDir in the archive.
|
IHDF5Archiver |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
IArchiveEntryVisitor visitor)
Verifies the content of the complete archive against the filesystem.
|
IHDF5Archiver |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
IArchiveEntryVisitor visitor,
IArchiveEntryVisitor missingArchiveEntryVisitor)
Verifies the content of the complete archive against the filesystem.
|
IHDF5Archiver |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
IArchiveEntryVisitor visitor,
IArchiveEntryVisitor missingArchiveEntryVisitor,
VerifyParameters params)
Verifies the content of the complete archive against the filesystem.
|
IHDF5Archiver |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
IArchiveEntryVisitor visitor,
VerifyParameters params)
Verifies the content of the complete archive against the filesystem.
|
java.util.List<ArchiveEntry> |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
java.lang.String rootDirectoryInArchive)
Verifies the content of the archive against the filesystem.
|
IHDF5Archiver |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
java.lang.String rootDirectoryInArchive,
IArchiveEntryVisitor visitor,
IArchiveEntryVisitor missingArchiveEntryVisitor,
VerifyParameters params)
Verifies the content of the archive against the filesystem.
|
IHDF5Archiver |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
java.lang.String rootDirectoryInArchive,
IArchiveEntryVisitor visitor,
VerifyParameters params)
Verifies the content of the archive against the filesystem.
|
java.util.List<ArchiveEntry> |
verifyAgainstFilesystem(java.lang.String fileOrDir,
java.io.File rootDirectoryOnFS,
java.lang.String rootDirectoryInArchive,
VerifyParameters params)
Verifies the content of the archive against the filesystem.
|
close, extractFileAsByteArray, extractFileAsIInputStream, extractFileAsInputStream, isClosed, verifyAgainstFilesystem, verifyAgainstFilesystem, verifyAgainstFilesystem, verifyAgainstFilesystem
exists, isDirectory, isRegularFile, isSymLink, list, list, list, test, tryGetEntry, tryGetResolvedEntry, tryResolveLink
void flush() throws java.io.IOException
java.io.IOException
IHDF5Archiver archiveFromFilesystem(java.io.File path) throws java.lang.IllegalStateException
path
- The file or directory to archive. Everything below this path is archived.java.lang.IllegalStateException
IHDF5Archiver archiveFromFilesystem(java.io.File path, ArchivingStrategy strategy)
path
- The file or directory to archive. Everything below this path is archived.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.IHDF5Archiver archiveFromFilesystem(java.io.File path, IArchiveEntryVisitor visitor)
path
- The file or directory to archive. Everything below this path is archived.visitor
- The IArchiveEntryVisitor
to use. Can be null
.IHDF5Archiver archiveFromFilesystem(java.io.File path, ArchivingStrategy strategy, boolean keepNameFromPath, IArchiveEntryVisitor visitor)
path
- The file or directory to archive. Everything below this path is archived. The
name part of path may be kept, depending on the value of
keepNameFromPath.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.keepNameFromPath
- If true
, the name part of path is kept in the
archive. Otherwise, path will represent "/" in the archive.visitor
- The IArchiveEntryVisitor
to use. Can be null
.IHDF5Archiver archiveFromFilesystem(java.io.File parentDirToStrip, java.io.File path)
parentDirToStrip
- The parent directory of path on the filesystem which
should be stripped in the archive. It is an error, if parentDirToStrip
is not a parent directory of path. Example: If
path=/home/joe/work/a/b/c
and
parentDirToStrip=/home/joe/work
, then c
will end up in
the archive at the path a/b
.path
- The file or directory to archive.IHDF5Archiver archiveFromFilesystem(java.io.File parentDirToStrip, java.io.File path, ArchivingStrategy strategy)
parentDirToStrip
- The parent directory of path on the filesystem which
should be stripped in the archive. It is an error, if parentDirToStrip
is not a parent directory of path. Example: If
path=/home/joe/work/a/b/c
and
parentDirToStrip=/home/joe/work
, then c
will end up in
the archive at the path a/b
.path
- The file or directory to archive.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.IHDF5Archiver archiveFromFilesystem(java.io.File parentDirToStrip, java.io.File path, ArchivingStrategy strategy, IArchiveEntryVisitor visitor)
parentDirToStrip
- The parent directory of path on the filesystem which
should be stripped in the archive. It is an error, if parentDirToStrip
is not a parent directory of path. Example: If
path=/home/joe/work/a/b/c
and
parentDirToStrip=/home/joe/work
, then c
will end up in
the archive at the path /a/b/c
.path
- The file or directory to archive.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.visitor
- The IArchiveEntryVisitor
to use. Can be null
.IHDF5Archiver archiveFromFilesystem(java.lang.String rootInArchive, java.io.File path)
rootInArchive
- The root directory of path in the archive. Example: If
path=/home/joe/work/a/b/c
and rootInArchive=/t
, then
c
will end up in the archive at the path /t/c
. If
rootInArchive is the last part of the parent directory of
path on the filesystem, then its metadata will be taken from the
filesystem.path
- The file or directory to archive.IHDF5Archiver archiveFromFilesystem(java.lang.String rootInArchive, java.io.File path, ArchivingStrategy strategy)
rootInArchive
- The root directory of path in the archive. Example: If
path=/home/joe/work/a/b/c
and rootInArchive=/t
, then
c
will end up in the archive at the path /t/c
. If
rootInArchive is the last part of the parent directory of
path on the filesystem, then its metadata will be taken from the
filesystem.path
- The file or directory to archive.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.IHDF5Archiver archiveFromFilesystem(java.lang.String rootInArchive, java.io.File path, ArchivingStrategy strategy, IArchiveEntryVisitor visitor)
rootInArchive
- The root directory of path in the archive. Example: If
path=/home/joe/work/a/b/c
and rootInArchive=/t
, then
c
will end up in the archive at the path /t/c
. If
rootInArchive is the last part of the parent directory of
path on the filesystem, then its metadata will be taken from the
filesystem.path
- The file or directory to archive.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.visitor
- The IArchiveEntryVisitor
to use. Can be null
.IHDF5Archiver archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive, java.io.File directory)
rootInArchive
- The root directory of path in the archive. Example: If
directory=/home/joe/work/a/b
, directory b
has two files
c
and d
, and rootInArchive=/t
, then the
archive will have c
at path /t/c
and d
at
path /t/d
.directory
- The directory to archive the content of. It is an error if this is not a
directory on the filesystem.IHDF5Archiver archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive, java.io.File directory, ArchivingStrategy strategy)
rootInArchive
- The root directory of path in the archive. Example: If
path=/home/joe/work/a/b/c
and rootInArchive=/t
, then
c
will end up in the archive at the path /t/c
. If
rootInArchive is the last part of the parent directory of
path on the filesystem, then its metadata will be taken from the
filesystem.directory
- The directory to archive the content of. It is an error if this is not an
existing directory.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.IHDF5Archiver archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive, java.io.File directory, IArchiveEntryVisitor visitor)
rootInArchive
- The root directory of path in the archive. Example: If
path=/home/joe/work/a/b/c
and rootInArchive=/t
, then
c
will end up in the archive at the path /t/c
. If
rootInArchive is the last part of the parent directory of
path on the filesystem, then its metadata will be taken from the
filesystem.directory
- The directory to archive the content of. It is an error if this is not an
existing directory.visitor
- The IArchiveEntryVisitor
to use. Can be null
.IHDF5Archiver archiveFromFilesystemBelowDirectory(java.lang.String rootInArchive, java.io.File directory, ArchivingStrategy strategy, IArchiveEntryVisitor visitor)
rootInArchive
- The root directory of path in the archive. Example: If
path=/home/joe/work/a/b/c
and rootInArchive=/t
, then
c
will end up in the archive at the path /t/c
. If
rootInArchive is the last part of the parent directory of
path on the filesystem, then its metadata will be taken from the
filesystem.directory
- The directory to archive the content of. It is an error if this is not an
existing directory.strategy
- The archiving strategy to use. This strategy object determines which files to
include and to exclude and which files to compress.visitor
- The IArchiveEntryVisitor
to use. Can be null
.IHDF5Archiver archiveFile(java.lang.String path, byte[] data)
path
- The path to archive the data at.data
- The bytes to archive as file content.IHDF5Archiver archiveFile(java.lang.String path, java.io.InputStream input)
path
- The path to archive the data at.input
- The input stream to get the file content from.IHDF5Archiver archiveFile(NewArchiveEntry.NewFileArchiveEntry entry, java.io.InputStream input)
entry
- The archive entry (defining the path) to archive the data at.input
- The input stream to get the file content from.IHDF5Archiver archiveFile(NewArchiveEntry.NewFileArchiveEntry entry, byte[] data)
entry
- The archive entry (defining the path) to archive the data at.data
- The bytes to archive as file content.ch.systemsx.cisd.base.io.IOutputStream archiveFileAsIOutputStream(NewArchiveEntry.NewFileArchiveEntry entry)
IOutputStream
that can be used to write the content of a file into the
archive.entry
- The archive entry (defining the path) to archive the data at.java.io.OutputStream archiveFileAsOutputStream(NewArchiveEntry.NewFileArchiveEntry entry)
OutputStream
that can be used to write the content of a file into the
archive.entry
- The archive entry (defining the path) to archive the data at.IHDF5Archiver archiveSymlink(java.lang.String path, java.lang.String linkTarget)
path
- The path where the symbolic link resides.linkTarget
- The target where the symbolic link points to.IHDF5Archiver archiveSymlink(NewArchiveEntry.NewSymLinkArchiveEntry entry)
entry
- The archive entry describing the symbolic link.IHDF5Archiver archiveDirectory(java.lang.String path)
path
- The path in the archive where the directory resides.IHDF5Archiver archiveDirectory(NewArchiveEntry.NewDirectoryArchiveEntry entry)
entry
- The archive entry describing the directory.IHDF5Archiver delete(java.lang.String path)
path
- The path to delete.IHDF5Archiver delete(java.util.List<java.lang.String> paths)
paths
- The paths to delete.IHDF5Archiver delete(java.util.List<java.lang.String> paths, IArchiveEntryVisitor entryVisitorOrNull)
paths
- The paths to delete.entryVisitorOrNull
- The visitor for each archive entry which is actually deleted. If no
errors occur, the visitor will be called once for each path in the list of
paths.IHDF5Archiver list(java.lang.String fileOrDir, IArchiveEntryVisitor visitor)
IHDF5ArchiveInfoProvider
list
in interface IHDF5ArchiveInfoProvider
fileOrDir
- The file to list or the directory to list the entries from recursively.visitor
- The archive entry visitor to call for each entry.IHDF5Archiver list(java.lang.String fileOrDir, IArchiveEntryVisitor visitor, ListParameters params)
IHDF5ArchiveInfoProvider
list
in interface IHDF5ArchiveInfoProvider
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.IHDF5Archiver verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, java.lang.String rootDirectoryInArchive, IArchiveEntryVisitor visitor, IArchiveEntryVisitor missingArchiveEntryVisitor, VerifyParameters params)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.rootDirectoryInArchive
- The root directory in the archive to start verify from. It will
be stripped from each entry before rootDirectoryOnFS is added.visitor
- The entry visitor to call for each entry. Call ArchiveEntry.isOK()
to
check whether verification was successful.missingArchiveEntryVisitor
- The entry visitor to call for each file that exists on the
filesystem, but is missing in the archive.params
- The parameters to determine behavior of the verification process.IHDF5Archiver verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, java.lang.String rootDirectoryInArchive, IArchiveEntryVisitor visitor, VerifyParameters params)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.rootDirectoryInArchive
- The root directory in the archive to start verify from. It will
be stripped from each entry before rootDirectoryOnFS is added.visitor
- The entry visitor to call for each entry. Call ArchiveEntry.isOK()
to
check whether verification was successful.params
- The parameters to determine behavior of the verification process.IHDF5Archiver verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, IArchiveEntryVisitor visitor, IArchiveEntryVisitor missingArchiveEntryVisitor, VerifyParameters params)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.visitor
- The entry visitor to call for each entry. Call ArchiveEntry.isOK()
to
check whether verification was successful.missingArchiveEntryVisitor
- The entry visitor to call for each file that exists on the
filesystem, but is missing in the archive.params
- The parameters to determine behavior of the verification process.IHDF5Archiver verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, IArchiveEntryVisitor visitor, VerifyParameters params)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.visitor
- The entry visitor to call for each entry. Call ArchiveEntry.isOK()
to
check whether verification was successful.params
- The parameters to determine behavior of the verification process.IHDF5Archiver verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, IArchiveEntryVisitor visitor, IArchiveEntryVisitor missingArchiveEntryVisitor)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.visitor
- The entry visitor to call for each entry. Call ArchiveEntry.isOK()
to
check whether verification was successful.missingArchiveEntryVisitor
- The entry visitor to call for each file that exists on the
filesystem, but is missing in the archive.IHDF5Archiver verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, IArchiveEntryVisitor visitor)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.visitor
- The entry visitor to call for each entry. Call ArchiveEntry.isOK()
to
check whether verification was successful.java.util.List<ArchiveEntry> verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, java.lang.String rootDirectoryInArchive, VerifyParameters params)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.rootDirectoryInArchive
- The root directory in the archive to start verify from. It will
be stripped from each entry before rootDirectoryOnFS is added.params
- The parameters to determine behavior of the verification process.java.util.List<ArchiveEntry> verifyAgainstFilesystem(java.lang.String fileOrDir, java.io.File rootDirectoryOnFS, java.lang.String rootDirectoryInArchive)
IHDF5ArchiveReader
verifyAgainstFilesystem
in interface IHDF5ArchiveReader
fileOrDir
- The file or directory entry in the archive to verify. May be empty, in which
case all entries below rootDirectoryInArchive are verified.rootDirectoryOnFS
- The root directory on the file system that should be added to each
entry in the archive when comparing.rootDirectoryInArchive
- The root directory in the archive to start verify from. It will
be stripped from each entry before rootDirectoryOnFS is added.IHDF5Archiver extractFile(java.lang.String path, java.io.OutputStream out) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
IHDF5ArchiveReader
OutputStream
.extractFile
in interface IHDF5ArchiveReader
path
- The path of the file to extract the content of.out
- The output stream to extract the content to.ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
IHDF5Archiver extractToFilesystem(java.io.File rootDirectory)
IHDF5ArchiveReader
extractToFilesystem
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.IHDF5Archiver extractToFilesystem(java.io.File rootDirectory, java.lang.String path) throws java.lang.IllegalStateException
IHDF5ArchiveReader
extractToFilesystem
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.path
- The path in the archive to extract. This path will be kept unchanged when
extracted.java.lang.IllegalStateException
IHDF5Archiver extractToFilesystem(java.io.File rootDirectory, java.lang.String path, IArchiveEntryVisitor visitor) throws java.lang.IllegalStateException
IHDF5ArchiveReader
extractToFilesystem
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.path
- The path in the archive to extract. This path will be kept unchanged when
extracted.visitor
- The entry visitor to call for each entry. Call
ArchiveEntry.isOK()
to check whether verification was successful. May be
null
.java.lang.IllegalStateException
IHDF5Archiver extractToFilesystem(java.io.File rootDirectory, java.lang.String path, ArchivingStrategy strategy, IArchiveEntryVisitor visitor) throws java.lang.IllegalStateException
IHDF5ArchiveReader
extractToFilesystem
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.path
- The path in the archive to extract. This path will be kept unchanged when
extracted.strategy
- The strategy to determine which files and directories to extract and which
ones to suppress.visitor
- The entry visitor to call for each entry. Call
ArchiveEntry.isOK()
to check whether verification was successful. May be
null
.java.lang.IllegalStateException
IHDF5Archiver extractToFilesystemBelowDirectory(java.io.File rootDirectory, java.lang.String rootPathInArchive)
IHDF5ArchiveReader
extractToFilesystemBelowDirectory
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.rootPathInArchive
- The root path in the archive to extract. This path will be stripped when
extracted.IHDF5Archiver extractToFilesystemBelowDirectory(java.io.File rootDirectory, java.lang.String rootPathInArchive, IArchiveEntryVisitor visitorOrNull)
IHDF5ArchiveReader
extractToFilesystemBelowDirectory
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.rootPathInArchive
- The root path in the archive to extract. This path will be stripped when
extracted.visitorOrNull
- The entry visitor to call for each entry. Call
ArchiveEntry.isOK()
to check whether verification was successful. May be
null
.IHDF5Archiver extractToFilesystemBelowDirectory(java.io.File rootDirectory, java.lang.String rootPathInArchive, ArchivingStrategy strategy, IArchiveEntryVisitor visitorOrNull)
IHDF5ArchiveReader
extractToFilesystemBelowDirectory
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.rootPathInArchive
- The root path in the archive to extract. This path will be stripped when
extracted.strategy
- The strategy to determine which files and directories to extract and which
ones to suppress.visitorOrNull
- The entry visitor to call for each entry. Call
ArchiveEntry.isOK()
to check whether verification was successful. May be
null
.IHDF5Archiver extractToFilesystemBelowDirectory(java.io.File rootDirectory, java.lang.String rootPathInArchive, java.lang.String path, ArchivingStrategy strategy, IArchiveEntryVisitor visitorOrNull) throws java.lang.IllegalStateException
IHDF5ArchiveReader
extractToFilesystemBelowDirectory
in interface IHDF5ArchiveReader
rootDirectory
- The directory in the file system to use as root directory for the
extracted archive path.rootPathInArchive
- The root path in the archive to extract. This path will be stripped when
extracted.path
- The path in the archive to extract, relative to rootPathInArchive.
This path will be kept unchanged when extracted.strategy
- The strategy to determine which files and directories to extract and which
ones to suppress.visitorOrNull
- The entry visitor to call for each entry. Call
ArchiveEntry.isOK()
to check whether verification was successful. May be
null
.java.lang.IllegalStateException