com.myJava.file.archive.zip64
Class ZipVolumeStrategy
java.lang.Object
com.myJava.file.archive.zip64.ZipVolumeStrategy
- All Implemented Interfaces:
- VolumeStrategy
public class ZipVolumeStrategy
- extends java.lang.Object
- implements VolumeStrategy
- Author:
- Olivier PETRUCCI
Areca Build ID : 7299034069467778562
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected java.io.File file
currentVolume
protected int currentVolume
nbDigits
protected int nbDigits
endReached
protected boolean endReached
driver
protected FileSystemDriver driver
cached
protected boolean cached
listener
protected OutputStreamListener listener
ZipVolumeStrategy
public ZipVolumeStrategy(java.io.File file,
int nbDigits)
ZipVolumeStrategy
public ZipVolumeStrategy(java.io.File file,
FileSystemDriver driver,
boolean cached,
int nbDigits)
- If no explicit driver is set, the strategy will use the filesystemmanager.
getCurrentVolumeNumber
public int getCurrentVolumeNumber()
- Specified by:
getCurrentVolumeNumber
in interface VolumeStrategy
getListener
public OutputStreamListener getListener()
setListener
public void setListener(OutputStreamListener listener)
getDriver
public FileSystemDriver getDriver()
getNextOutputStream
public java.io.OutputStream getNextOutputStream()
throws java.io.IOException
- Specified by:
getNextOutputStream
in interface VolumeStrategy
- Throws:
java.io.IOException
getNextInputStream
public java.io.InputStream getNextInputStream()
throws java.io.IOException
- Specified by:
getNextInputStream
in interface VolumeStrategy
- Throws:
java.io.IOException
getNextFile
public java.io.File getNextFile()
getVolumesCount
public int getVolumesCount()
- Specified by:
getVolumesCount
in interface VolumeStrategy
getFinalArchive
public java.io.File getFinalArchive()
getFirstVolume
public java.io.File getFirstVolume()
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface VolumeStrategy
- Throws:
java.io.IOException