Package org.jbundle.jbackup.source
Class ZipSource
- java.lang.Object
-
- org.jbundle.jbackup.source.BaseSource
-
- org.jbundle.jbackup.source.ZipSource
-
- All Implemented Interfaces:
Iterator<SourceFile>,JBackupConstants,SourceFileList,org.jbundle.util.apprunner.PropertyOwner
public class ZipSource extends BaseSource implements SourceFileList, 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 ZipInputStreamm_inZipprotected Stringm_strZipFilename-
Fields inherited from class org.jbundle.jbackup.source.BaseSource
gchSeparator, m_dateLastBackup, m_Filter, m_nextPend
-
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 ZipSource()ZipSource(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishTransfer(Properties properties)org.jbundle.util.apprunner.PropertyViewgetPropertyView(Properties properties)voidinit(Properties properties)voidinitTransfer(Properties properties)SourceFilenext()Returns the next element in the interation.-
Methods inherited from class org.jbundle.jbackup.source.BaseSource
getPend, hasNext, isPend, remove, setProperties, skipFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, remove
-
-
-
-
Field Detail
-
m_strZipFilename
protected String m_strZipFilename
-
m_inZip
protected ZipInputStream m_inZip
-
-
Constructor Detail
-
ZipSource
public ZipSource()
-
ZipSource
public ZipSource(Properties properties)
-
-
Method Detail
-
init
public void init(Properties properties)
- Overrides:
initin classBaseSource
-
initTransfer
public void initTransfer(Properties properties)
- Specified by:
initTransferin interfaceSourceFileList- Overrides:
initTransferin classBaseSource
-
finishTransfer
public void finishTransfer(Properties properties)
- Specified by:
finishTransferin interfaceSourceFileList- Overrides:
finishTransferin classBaseSource
-
next
public SourceFile next()
Returns the next element in the interation. (Returns a SourceFileObject).- Specified by:
nextin interfaceIterator<SourceFile>- Overrides:
nextin classBaseSource- Returns:
- the next element in the interation.
- Throws:
NoSuchElementException- iteration has no more elements.
-
getPropertyView
public org.jbundle.util.apprunner.PropertyView getPropertyView(Properties properties)
- Specified by:
getPropertyViewin interfaceorg.jbundle.util.apprunner.PropertyOwner- Overrides:
getPropertyViewin classBaseSource
-
-