
Classes | |
| class | XarHeader |
| class | XarInputStream |
| class | XarToc |
Public Member Functions | |
| Map< String, XarEntry > | getEntries () |
| XarEntry | getEntry (String name) |
| InputStream | getInputStream (XarEntry entry) throws IOException |
| InputStream | getInputStream (String name) throws IOException |
| void | run () throws IOException, NoSuchAlgorithmException |
| XarFile (InputStream stream) throws IOException | |
| XarFile (File file) throws IOException | |
| XarFile (String name) throws IOException | |
Private Member Functions | |
| String | getCksumName () |
| XarToc | getToc () |
| byte[] | readByte8 () throws IOException |
| int | readUint16 () throws IOException |
| long | readUint32 () throws IOException |
| BigInteger | readUint64 () throws IOException |
| void | setInputStream (InputStream stream) throws IOException |
Static Private Member Functions | |
| static void | readFully (InputStream inputStream, byte[] buffer) throws IOException |
| static void | skipFully (InputStream inputStream, long skip) throws IOException |
Private Attributes | |
| final byte[] | byte2 = new byte[2] |
| final byte[] | byte4 = new byte[4] |
| final byte[] | byte8 = new byte[8] |
| long | currentOffset = 0 |
| final Map< String, XarEntry > | entries = new HashMap<String, XarEntry>() |
| File | file |
| XarHeader | header |
| InputStream | inputStream |
| InputStream | lastInputStream |
| XarToc | toc |
Static Private Attributes | |
| static final int | BYTE_MASK = 0xff |
| static final String[] | XAR_CKSUM = new String[] { "NONE", "SHA1", "MD5" } |
| static final long | XAR_HEADER_MAGIC = 0x78617221 |
| static final int | XAR_HEADER_SIZE = 28 |
| XarFile | ( | File | file | ) | throws IOException |
| XarFile | ( | InputStream | stream | ) | throws IOException |
| String getCksumName | ( | ) | [private] |
| InputStream getInputStream | ( | XarEntry | entry | ) | throws IOException |
| InputStream getInputStream | ( | String | name | ) | throws IOException |
| XarToc getToc | ( | ) | [private] |
| byte [] readByte8 | ( | ) | throws IOException [private] |
| static void readFully | ( | InputStream | inputStream, | |
| byte[] | buffer | |||
| ) | throws IOException [static, private] |
| int readUint16 | ( | ) | throws IOException [private] |
| long readUint32 | ( | ) | throws IOException [private] |
| BigInteger readUint64 | ( | ) | throws IOException [private] |
| void run | ( | ) | throws IOException, NoSuchAlgorithmException |
| void setInputStream | ( | InputStream | stream | ) | throws IOException [private] |
| static void skipFully | ( | InputStream | inputStream, | |
| long | skip | |||
| ) | throws IOException [static, private] |
final byte [] byte2 = new byte[2] [private] |
final byte [] byte4 = new byte[4] [private] |
final byte [] byte8 = new byte[8] [private] |
final int BYTE_MASK = 0xff [static, private] |
long currentOffset = 0 [private] |
File file [private] |
InputStream inputStream [private] |
InputStream lastInputStream [private] |
final long XAR_HEADER_MAGIC = 0x78617221 [static, private] |
final int XAR_HEADER_SIZE = 28 [static, private] |
1.5.8