public class Archive extends Object implements Closeable
| Constructor and Description |
|---|
Archive(NativeStorage file) |
Archive(NativeStorage file,
UnrarCallback unrarCallback)
create a new archive object using the given file
|
| Modifier and Type | Method and Description |
|---|---|
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
|
NativeStorage |
getFile() |
List<FileHeader> |
getFileHeaders() |
MainHeader |
getMainHeader() |
NativeFile |
getRof() |
UnrarCallback |
getUnrarCallback() |
boolean |
isEncrypted() |
boolean |
isOldFormat() |
FileHeader |
nextFileHeader() |
public Archive(NativeStorage file) throws RarException, IOException
RarExceptionIOExceptionpublic Archive(NativeStorage file, UnrarCallback unrarCallback) throws RarException, IOException
file - the file to extractRarExceptionIOExceptionpublic NativeStorage getFile()
public void bytesReadRead(int count)
public NativeFile 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 outputstreamRarExceptionpublic MainHeader getMainHeader()
public boolean isOldFormat()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.