com.myJava.file.archive.zip64
Class ZipVolumeStrategy

java.lang.Object
  extended by 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

Field Summary
protected  boolean cached
           
protected  int currentVolume
           
protected  FileSystemDriver driver
           
protected  boolean endReached
           
protected  java.io.File file
           
protected  OutputStreamListener listener
           
protected  int nbDigits
           
 
Constructor Summary
ZipVolumeStrategy(java.io.File file, FileSystemDriver driver, boolean cached, int nbDigits)
          If no explicit driver is set, the strategy will use the filesystemmanager.
ZipVolumeStrategy(java.io.File file, int nbDigits)
           
 
Method Summary
 void close()
           
 int getCurrentVolumeNumber()
           
 FileSystemDriver getDriver()
           
 java.io.File getFinalArchive()
           
 java.io.File getFirstVolume()
           
 OutputStreamListener getListener()
           
 java.io.File getNextFile()
           
 java.io.InputStream getNextInputStream()
           
 java.io.OutputStream getNextOutputStream()
           
 int getVolumesCount()
           
 void setListener(OutputStreamListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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