Class InputStreamVolume

java.lang.Object
com.github.junrar.volume.InputStreamVolume
All Implemented Interfaces:
Volume

public class InputStreamVolume extends Object implements Volume
  • Field Details

    • archive

      private final Archive archive
    • inputStream

      private final InputStream inputStream
    • position

      private final int position
  • Constructor Details

    • InputStreamVolume

      public InputStreamVolume(Archive archive, InputStream inputStream, int position)
  • Method Details

    • getChannel

      public SeekableReadOnlyByteChannel getChannel()
      Specified by:
      getChannel in interface Volume
      Returns:
      SeekableReadOnlyByteChannel the channel
    • 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
    • getPosition

      public int getPosition()