Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

com.github.junrar.Volume

SeregaMamonT edited this page Jan 22, 2013 · 9 revisions

Description

Volume interface should be implemented in class containing data which should be unpacked. This interface is one of two main interfaces that should be implemented if a new data storage required (based on a byte array, for example).

Methods

  • IReadOnlyAccess getReadOnlyAccess() throws IOException - returns IReadOnlyAccess object which suppports read only random access to data storage.
  • long getLength() - returns length of the data storage in bytes (it seems that currently length of the data requires only to validate that the parsing works in the proper way, so any value greater or equals to real data size will not do any harm for unpacking of the correct achive)
  • Archive getArchive() - returns back reference to Archive object representing this data storage.

Implementations

Currently, there are two implementations of this interface in the library:

  • FileVolume - data storage based on java.io.File
  • VFSVolume - data storage based on org.apache.commons.vfs2.FileObject
Clone this wiki locally