Package com.github.junrar.volume
Class InputStreamVolumeManager
- java.lang.Object
-
- com.github.junrar.volume.InputStreamVolumeManager
-
- All Implemented Interfaces:
VolumeManager
public class InputStreamVolumeManager extends java.lang.Object implements VolumeManager
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.io.InputStream>streams
-
Constructor Summary
Constructors Constructor Description InputStreamVolumeManager(java.io.InputStream is)InputStreamVolumeManager(java.util.List<java.io.InputStream> streams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumenextVolume(Archive archive, Volume lastVolume)Returns either the first volume or the next volume.
-
-
-
Method Detail
-
nextVolume
public Volume nextVolume(Archive archive, Volume lastVolume)
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 oflastVolume- the last volume before the one to return- Returns:
- the first volume if lastVolume is null, else the next volume after lastVolume
-
-