Class FileVolumeManager

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File firstVolume  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileVolumeManager​(java.io.File firstVolume)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Volume nextVolume​(Archive archive, Volume last)
      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

      • firstVolume

        private final java.io.File firstVolume
    • Constructor Detail

      • FileVolumeManager

        public FileVolumeManager​(java.io.File firstVolume)
    • Method Detail

      • nextVolume

        public Volume nextVolume​(Archive archive,
                                 Volume last)
        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
        last - the last volume before the one to return
        Returns:
        the first volume if lastVolume is null, else the next volume after lastVolume