XarFile Class Reference

Collaboration diagram for XarFile:

Collaboration graph
[legend]

List of all members.

Classes

class  XarHeader
class  XarInputStream
class  XarToc

Public Member Functions

Map< String, XarEntrygetEntries ()
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, XarEntryentries = 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


Constructor & Destructor Documentation

XarFile ( String  name  )  throws IOException

XarFile ( File  file  )  throws IOException

XarFile ( InputStream  stream  )  throws IOException


Member Function Documentation

String getCksumName (  )  [private]

Map<String, XarEntry> getEntries (  ) 

XarEntry getEntry ( String  name  ) 

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]


Member Data Documentation

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]

final Map<String, XarEntry> entries = new HashMap<String, XarEntry>() [private]

File file [private]

XarHeader header [private]

InputStream inputStream [private]

InputStream lastInputStream [private]

XarToc toc [private]

final String [] XAR_CKSUM = new String[] { "NONE", "SHA1", "MD5" } [static, private]

final long XAR_HEADER_MAGIC = 0x78617221 [static, private]

final int XAR_HEADER_SIZE = 28 [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:36 2012 for Project Wonder by  doxygen 1.5.8