Package com.github.junrar.volume
Class FileVolume
- java.lang.Object
-
- com.github.junrar.volume.FileVolume
-
-
Constructor Summary
Constructors Constructor Description FileVolume(Archive archive, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchivegetArchive()SeekableReadOnlyByteChannelgetChannel()java.io.FilegetFile()longgetLength()
-
-
-
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:
getChannelin interfaceVolume- Returns:
- SeekableReadOnlyByteChannel the channel
- Throws:
java.io.IOException- .
-
getLength
public long getLength()
-
getArchive
public Archive getArchive()
- Specified by:
getArchivein interfaceVolume- Returns:
- the archive this volume belongs to
-
getFile
public java.io.File getFile()
- Returns:
- the file
-
-