Class 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  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Volume nextVolume​(Archive archive, Volume lastVolume)
      Returns either the first volume or the next volume.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • streams

        private final java.util.Map<java.lang.Integer,​java.io.InputStream> streams
    • Constructor Detail

      • InputStreamVolumeManager

        public InputStreamVolumeManager​(java.io.InputStream is)
      • InputStreamVolumeManager

        public InputStreamVolumeManager​(java.util.List<java.io.InputStream> streams)
    • Method Detail

      • nextVolume

        public Volume nextVolume​(Archive archive,
                                 Volume lastVolume)
        Description copied from interface: VolumeManager
        Returns either the first volume or the next volume.
        Specified by:
        nextVolume in interface VolumeManager
        Parameters:
        archive - the archive the volumes are part of
        lastVolume - the last volume before the one to return
        Returns:
        the first volume if lastVolume is null, else the next volume after lastVolume