|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.junrar.Archive
public class Archive
The Main Rar Class; represents a rar Archive
| Constructor Summary | |
|---|---|
Archive(File firstVolume)
|
|
Archive(File firstVolume,
UnrarCallback unrarCallback)
|
|
Archive(VolumeManager volumeManager)
|
|
Archive(VolumeManager volumeManager,
UnrarCallback unrarCallback)
create a new archive object using the given VolumeManager |
|
| Method Summary | |
|---|---|
void |
bytesReadRead(int count)
|
void |
close()
Close the underlying compressed file. |
void |
extractFile(FileHeader hd,
OutputStream os)
Extract the file specified by the given header and write it to the supplied output stream |
List<FileHeader> |
getFileHeaders()
|
InputStream |
getInputStream(FileHeader hd)
Returns an InputStream that will allow to read the file and
stream it. |
MainHeader |
getMainHeader()
|
IReadOnlyAccess |
getRof()
|
UnrarCallback |
getUnrarCallback()
|
Volume |
getVolume()
|
VolumeManager |
getVolumeManager()
|
boolean |
isEncrypted()
|
boolean |
isOldFormat()
|
FileHeader |
nextFileHeader()
|
void |
setVolume(Volume volume)
|
void |
setVolumeManager(VolumeManager volumeManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Archive(VolumeManager volumeManager)
throws RarException,
IOException
RarException
IOException
public Archive(VolumeManager volumeManager,
UnrarCallback unrarCallback)
throws RarException,
IOException
VolumeManager
volumeManager - the the VolumeManager that will provide volume stream
data
RarException
IOException
public Archive(File firstVolume)
throws RarException,
IOException
RarException
IOException
public Archive(File firstVolume,
UnrarCallback unrarCallback)
throws RarException,
IOException
RarException
IOException| Method Detail |
|---|
public void bytesReadRead(int count)
public IReadOnlyAccess getRof()
public List<FileHeader> getFileHeaders()
public FileHeader nextFileHeader()
public UnrarCallback getUnrarCallback()
public boolean isEncrypted()
public void extractFile(FileHeader hd,
OutputStream os)
throws RarException
header - the header to be extractedos - the outputstream
RarException
public InputStream getInputStream(FileHeader hd)
throws RarException,
IOException
InputStream that will allow to read the file and
stream it. Please note that this method will create a new Thread and an a
pair of Pipe streams.
header - the header to be extracted
RarException
IOException - if any IO error occurpublic MainHeader getMainHeader()
public boolean isOldFormat()
public void close()
throws IOException
close in interface CloseableIOExceptionpublic VolumeManager getVolumeManager()
public void setVolumeManager(VolumeManager volumeManager)
volumeManager - the volumeManager to setpublic Volume getVolume()
public void setVolume(Volume volume)
throws IOException
volume - the volume to set
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||