Package org.jbundle.jbackup.destination
Class ZipDestination
- java.lang.Object
-
- org.jbundle.jbackup.destination.BaseDestination
-
- org.jbundle.jbackup.destination.ZipDestination
-
- All Implemented Interfaces:
DestinationFile,JBackupConstants,org.jbundle.util.apprunner.PropertyOwner
public class ZipDestination extends BaseDestination implements DestinationFile, JBackupConstants
Directory scanner. This class is a utility for scanning through a directory tree.- Version:
- Author:
- Administrator
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_iFileNumberprotected longm_lCurrentLengthprotected longm_lMaxZipFileSizeprotected ZipOutputStreamm_outZipprotected Stringm_strZipFilename-
Fields inherited from interface org.jbundle.jbackup.JBackupConstants
BACKUP_INCREMENTAL_PARAM, BACKUPDATE_PARAM, BASE_URL_PARAM, BLANK, CALC_FILE_LENGTH_PARAM, DEBUG, DEFAULT_PROPERTY_FILENAME, DEFAULT_ROOT_DIR, DEST_ROOT_PATHNAME_PARAM, DESTINATION_PARAM, FALSE, FILTER_PARAM, FTP_HOST, FTP_PORT, HTTP, LOG_FILENAME_PARAM, MAX_LEVELS, MAX_SIZE_PARAM, PASSWORD, PROPERTY_FILENAME_PARAM, PROPERTY_QUIET_PARAM, ROOT_DIR, ROOT_PACKAGE, SOURCE_PARAM, SOURCE_ROOT_PATHNAME_PARAM, TRUE, USER_NAME, ZIPIN_FILENAME_PARAM, ZIPOUT_FILENAME_PARAM, ZIPOUT_PATHNAME_PARAM
-
-
Constructor Summary
Constructors Constructor Description ZipDestination()ZipDestination(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddNextFile(SourceFile source)voidfinishTransfer(Properties properties)StringgetBackupFilename()org.jbundle.util.apprunner.PropertyViewgetPropertyView(Properties properties)voidinit(Properties properties)voidinitTransfer(Properties properties)-
Methods inherited from class org.jbundle.jbackup.destination.BaseDestination
setProperties
-
-
-
-
Field Detail
-
m_strZipFilename
protected String m_strZipFilename
-
m_outZip
protected ZipOutputStream m_outZip
-
m_lMaxZipFileSize
protected long m_lMaxZipFileSize
-
m_lCurrentLength
protected long m_lCurrentLength
-
m_iFileNumber
protected int m_iFileNumber
-
-
Constructor Detail
-
ZipDestination
public ZipDestination()
-
ZipDestination
public ZipDestination(Properties properties)
-
-
Method Detail
-
init
public void init(Properties properties)
- Overrides:
initin classBaseDestination
-
initTransfer
public void initTransfer(Properties properties)
- Specified by:
initTransferin interfaceDestinationFile- Overrides:
initTransferin classBaseDestination
-
finishTransfer
public void finishTransfer(Properties properties)
- Specified by:
finishTransferin interfaceDestinationFile- Overrides:
finishTransferin classBaseDestination
-
addNextFile
public long addNextFile(SourceFile source)
- Specified by:
addNextFilein interfaceDestinationFile- Overrides:
addNextFilein classBaseDestination
-
getPropertyView
public org.jbundle.util.apprunner.PropertyView getPropertyView(Properties properties)
- Specified by:
getPropertyViewin interfaceorg.jbundle.util.apprunner.PropertyOwner- Overrides:
getPropertyViewin classBaseDestination
-
getBackupFilename
public String getBackupFilename()
-
-