public class XarFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XarFile.Header |
| Modifier and Type | Method and Description |
|---|---|
void |
extractAll(File directory)
Convenience method for extracting all files bypassing integrity check.
|
void |
extractAll(File directory,
boolean check) |
void |
extractAll(File directory,
boolean check,
XarEntry.OnEntryExtractedListener listener) |
List<XarEntry> |
getEntries()
Lists all the
XarEntrys in this file. |
XarEntry |
getEntry(String entryName) |
File |
getFile() |
XarFile.Header |
getHeader() |
long |
getSize() |
InputStream |
getToCStream() |
boolean |
hasEntry(String entryName) |
String |
toString() |
public XarFile(File file) throws XarException
XarExceptionpublic InputStream getToCStream() throws IOException
IOExceptionpublic List<XarEntry> getEntries()
XarEntrys in this file.public boolean hasEntry(String entryName)
public long getSize()
public XarFile.Header getHeader()
public File getFile()
public void extractAll(File directory) throws IOException
directory - destination directory for extracted filesIOExceptionpublic void extractAll(File directory, boolean check) throws IOException
IOExceptionpublic void extractAll(File directory, boolean check, XarEntry.OnEntryExtractedListener listener) throws IOException
IOExceptionCopyright © 2016. All rights reserved.