Package com.github.junrar.volume
Class FileVolumeManager
- java.lang.Object
-
- com.github.junrar.volume.FileVolumeManager
-
- All Implemented Interfaces:
VolumeManager
public class FileVolumeManager extends java.lang.Object implements VolumeManager
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FilefirstVolume
-
Constructor Summary
Constructors Constructor Description FileVolumeManager(java.io.File firstVolume)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumenextVolume(Archive archive, Volume last)Returns either the first volume or the next volume.
-
-
-
Method Detail
-
nextVolume
public Volume nextVolume(Archive archive, Volume last)
Description copied from interface:VolumeManagerReturns either the first volume or the next volume.- Specified by:
nextVolumein interfaceVolumeManager- Parameters:
archive- the archive the volumes are part oflast- the last volume before the one to return- Returns:
- the first volume if lastVolume is null, else the next volume after lastVolume
-
-