Package org.cdlib.mrt.utility
Class ArchiveBuilderBase.Zip
java.lang.Object
org.cdlib.mrt.utility.ArchiveBuilderBase
org.cdlib.mrt.utility.ArchiveBuilderBase.Zip
- Enclosing class:
- ArchiveBuilderBase
Zip archive - with call backs specific to zip
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cdlib.mrt.utility.ArchiveBuilderBase
ArchiveBuilderBase.ArchiveType, ArchiveBuilderBase.Tar, ArchiveBuilderBase.TarGZ, ArchiveBuilderBase.Zip
-
Field Summary
FieldsFields inherited from class org.cdlib.mrt.utility.ArchiveBuilderBase
archiveType, BUFSIZE, buildFileCnt, buildTimeMs, compressZip, DEBUG, deleteFileAfterCopy, fromDir, includeBase, logger, MESSAGE, NAME, outputStream, toArchive
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addItemFile
(File entry, LoggerInf logger) write a archive entry to archive outputprotected void
Call back routine to close archive.protected ZipEntry
getZipEntry
(File inFile) protected void
setOutputStream
(OutputStream baseOutputStream) Call back routine for setting archive output stream type: tar, tar.gz, zipMethods inherited from class org.cdlib.mrt.utility.ArchiveBuilderBase
addFiles, buildArchive, getArchiveBuilderBase, getArchiveBuilderBase, getBuildFileCnt, getBuildTimeMs, getCRC, getDecimal, getEntryName, isDeleteFileAfterCopy, main, setCompressZip, setDeleteFileAfterCopy, setEntry
-
Field Details
-
zipOutputStream
-
-
Constructor Details
-
Zip
- Throws:
TException
-
Zip
- Throws:
TException
-
Zip
public Zip(File fromDir, File toArchive, LoggerInf logger, ArchiveBuilderBase.ArchiveType archiveType) throws TException - Throws:
TException
-
-
Method Details
-
setOutputStream
Description copied from class:ArchiveBuilderBase
Call back routine for setting archive output stream type: tar, tar.gz, zip- Specified by:
setOutputStream
in classArchiveBuilderBase
- Throws:
TException
-
addItemFile
write a archive entry to archive output- Specified by:
addItemFile
in classArchiveBuilderBase
- Parameters:
entry
- archive file entry- Throws:
TException
-
getZipEntry
- Throws:
TException
-
closeArchive
protected void closeArchive()Description copied from class:ArchiveBuilderBase
Call back routine to close archive. Archive type specific.- Specified by:
closeArchive
in classArchiveBuilderBase
-