| Constructor and Description |
|---|
Zipper(File dirToZip,
File zipFile)
Instantiates a new zipper.
|
Zipper(File dirToZip,
File zipFile,
FilenameFilter filter)
Instantiates a new zipper.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCompressionMethod()
Gets the compression method.
|
File |
getDirectoryToZip()
Gets the directory to zip.
|
String |
getDirToStart()
Gets the dir to start.
|
int |
getFileCounter()
Gets the file counter.
|
FilenameFilter |
getFileFilter()
Gets the file filter.
|
long |
getFileLength()
Gets the file length.
|
File |
getZipFile()
Gets the zip file.
|
String |
getZipFileComment()
Gets the zip file comment.
|
String |
getZipFileName()
Gets the zip file name.
|
ZipFile |
getZipFileObj()
Returns the field
zipFileObj. |
int |
getZipLevel()
Gets the zip level.
|
void |
setCompressionMethod(int compressionMethod)
Sets the compression method.
|
void |
setDirectoryToZip(File directoryToZip)
Sets the directory to zip.
|
void |
setDirToStart(String dirToStart)
Sets the dir to start.
|
void |
setFileCounter(int fileCounter)
Sets the file counter.
|
void |
setFileFilter(FilenameFilter fileFilter)
Sets the file filter.
|
void |
setFileLength(long fileLength)
Sets the file length.
|
void |
setZipFile(File zipFile)
Sets the zip file.
|
void |
setZipFileComment(String zipFileComment)
Sets the zip file comment.
|
void |
setZipFileName(String zipFileName)
Sets the zip file name.
|
void |
setZipFileObj(ZipFile zipFileObj)
Sets the field
zipFileObj. |
void |
setZipLevel(int zipLevel)
Sets the zip level.
|
void |
zip()
Zip.
|
public Zipper(File dirToZip, File zipFile)
dirToZip - the dir to zipzipFile - the zip filepublic Zipper(File dirToZip, File zipFile, FilenameFilter filter)
dirToZip - the dir to zipzipFile - the zip filefilter - the filterpublic int getCompressionMethod()
getCompressionMethod in interface ZipModelcompressionMethod.ZipModel.getCompressionMethod()public File getDirectoryToZip()
getDirectoryToZip in interface ZipModeldirectoryToZip.ZipModel.getDirectoryToZip()public String getDirToStart()
getDirToStart in interface ZipModeldirToStart.ZipModel.getDirToStart()public int getFileCounter()
getFileCounter in interface ZipModelfileCounter.ZipModel.getFileCounter()public FilenameFilter getFileFilter()
getFileFilter in interface ZipModelfileFilter.ZipModel.getFileFilter()public long getFileLength()
getFileLength in interface ZipModelfileLength.ZipModel.getFileLength()public File getZipFile()
getZipFile in interface ZipModelzipFile.ZipModel.getZipFile()public String getZipFileComment()
getZipFileComment in interface ZipModelzipFileComment.ZipModel.getZipFileComment()public String getZipFileName()
getZipFileName in interface ZipModelzipFileName.ZipModel.getZipFileName()public ZipFile getZipFileObj()
zipFileObj.getZipFileObj in interface ZipModelzipFileObj.public int getZipLevel()
getZipLevel in interface ZipModelzipLevel.ZipModel.getZipLevel()public void setCompressionMethod(int compressionMethod)
setCompressionMethod in interface ZipModelcompressionMethod - the new compression method The compressionMethod to setZipModel.setCompressionMethod(int)public void setDirectoryToZip(File directoryToZip)
setDirectoryToZip in interface ZipModeldirectoryToZip - the new directory to zip The directoryToZip to setZipModel.setDirectoryToZip(java.io.File)public void setDirToStart(String dirToStart)
setDirToStart in interface ZipModeldirToStart - the new dir to start The dirToStart to setZipModel.setDirToStart(java.lang.String)public void setFileCounter(int fileCounter)
setFileCounter in interface ZipModelfileCounter - the new file counter The fileCounter to setZipModel.setFileCounter(int)public void setFileFilter(FilenameFilter fileFilter)
setFileFilter in interface ZipModelfileFilter - the new file filter The fileFilter to setZipModel.setFileFilter(java.io.FilenameFilter)public void setFileLength(long fileLength)
setFileLength in interface ZipModelfileLength - the new file length The fileLength to setZipModel.setFileLength(long)public void setZipFile(File zipFile)
setZipFile in interface ZipModelzipFile - the new zip file The zipFile to setZipModel.setZipFile(java.io.File)public void setZipFileComment(String zipFileComment)
setZipFileComment in interface ZipModelzipFileComment - the new zip file comment The zipFileComment to setZipModel.setZipFileComment(java.lang.String)public void setZipFileName(String zipFileName)
setZipFileName in interface ZipModelzipFileName - the new zip file name The zipFileName to setZipModel.setZipFileName(java.lang.String)public void setZipFileObj(ZipFile zipFileObj)
zipFileObj.setZipFileObj in interface ZipModelzipFileObj - The zipFileObj to setpublic void setZipLevel(int zipLevel)
setZipLevel in interface ZipModelzipLevel - the new zip level The zipLevel to setZipModel.setZipLevel(int)public void zip()
Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.