Package com.github.junrar.volume
Class InputStreamVolume
- java.lang.Object
-
- com.github.junrar.volume.InputStreamVolume
-
-
Field Summary
Fields Modifier and Type Field Description private Archivearchiveprivate java.io.InputStreaminputStreamprivate intposition
-
Constructor Summary
Constructors Constructor Description InputStreamVolume(Archive archive, java.io.InputStream inputStream, int position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchivegetArchive()SeekableReadOnlyByteChannelgetChannel()longgetLength()intgetPosition()
-
-
-
Field Detail
-
archive
private final Archive archive
-
inputStream
private final java.io.InputStream inputStream
-
position
private final int position
-
-
Constructor Detail
-
InputStreamVolume
public InputStreamVolume(Archive archive, java.io.InputStream inputStream, int position)
-
-
Method Detail
-
getChannel
public SeekableReadOnlyByteChannel getChannel()
- Specified by:
getChannelin interfaceVolume- Returns:
- SeekableReadOnlyByteChannel the channel
-
getLength
public long getLength()
-
getArchive
public Archive getArchive()
- Specified by:
getArchivein interfaceVolume- Returns:
- the archive this volume belongs to
-
getPosition
public int getPosition()
-
-