Package arcommon
Class ZipUtil.ZipStep
- java.lang.Object
-
- arcommon.ZipUtil.ZipStep
-
- All Implemented Interfaces:
ZipUtil.ZipStepInterface
- Enclosing class:
- ZipUtil
public static class ZipUtil.ZipStep extends java.lang.Object implements ZipUtil.ZipStepInterface
-
-
Constructor Summary
Constructors Constructor Description ZipStep(java.lang.String ptoPath, boolean pecho)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringconvertFileName(java.lang.String fileName)Converts the file name from absolute file name to ZIP file file name.voidzipDirectory(java.lang.String shortFileName, java.lang.String fullFileName, java.util.zip.ZipOutputStream zipOutputStream)Called per directory added to the ZIP file.voidzipFile(java.util.zip.ZipEntry zipEntry, java.lang.String shortFileName, java.lang.String fileString, java.util.zip.ZipOutputStream zipOutputStream)Called per file added to the ZIP file.voidzippingZipFile(java.lang.String zipFileName)Called at the start of zipping a ZIP file.
-
-
-
Constructor Detail
-
ZipStep
public ZipStep(java.lang.String ptoPath, boolean pecho)
-
-
Method Detail
-
zippingZipFile
public void zippingZipFile(java.lang.String zipFileName)
Description copied from interface:ZipUtil.ZipStepInterfaceCalled at the start of zipping a ZIP file. Only called once per ZIP file.- Specified by:
zippingZipFilein interfaceZipUtil.ZipStepInterface
-
convertFileName
public java.lang.String convertFileName(java.lang.String fileName)
Description copied from interface:ZipUtil.ZipStepInterfaceConverts the file name from absolute file name to ZIP file file name.- Specified by:
convertFileNamein interfaceZipUtil.ZipStepInterface
-
zipFile
public void zipFile(java.util.zip.ZipEntry zipEntry, java.lang.String shortFileName, java.lang.String fileString, java.util.zip.ZipOutputStream zipOutputStream) throws java.io.IOException
Description copied from interface:ZipUtil.ZipStepInterfaceCalled per file added to the ZIP file.- Specified by:
zipFilein interfaceZipUtil.ZipStepInterface- Throws:
java.io.IOException
-
zipDirectory
public void zipDirectory(java.lang.String shortFileName, java.lang.String fullFileName, java.util.zip.ZipOutputStream zipOutputStream)
Description copied from interface:ZipUtil.ZipStepInterfaceCalled per directory added to the ZIP file.- Specified by:
zipDirectoryin interfaceZipUtil.ZipStepInterface
-
-