Class FileVolume

  • All Implemented Interfaces:
    Volume

    public class FileVolume
    extends java.lang.Object
    implements Volume
    • Field Detail

      • archive

        private final Archive archive
      • file

        private final java.io.File file
    • Constructor Detail

      • FileVolume

        public FileVolume​(Archive archive,
                          java.io.File file)
        Parameters:
        archive - .
        file - .
    • Method Detail

      • getChannel

        public SeekableReadOnlyByteChannel getChannel()
                                               throws java.io.IOException
        Specified by:
        getChannel in interface Volume
        Returns:
        SeekableReadOnlyByteChannel the channel
        Throws:
        java.io.IOException - .
      • getLength

        public long getLength()
        Specified by:
        getLength in interface Volume
        Returns:
        the data length
      • getArchive

        public Archive getArchive()
        Specified by:
        getArchive in interface Volume
        Returns:
        the archive this volume belongs to
      • getFile

        public java.io.File getFile()
        Returns:
        the file