org.vafer.jdeb.ar
Class ArInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.vafer.jdeb.ar.ArInputStream
All Implemented Interfaces:
Closeable

public class ArInputStream
extends InputStream

To be replace by commons compress once released

Author:
Torsten Curdt

Field Summary
static byte[] ENTRY_TERMINATOR
           
static int FIELD_SIZE_GID
           
static int FIELD_SIZE_LASTMODIFIED
           
static int FIELD_SIZE_LENGTH
           
static int FIELD_SIZE_MODE
           
static int FIELD_SIZE_NAME
           
static int FIELD_SIZE_UID
           
static byte[] HEADER
           
static int HEADER_SIZE
           
 
Constructor Summary
ArInputStream(InputStream pInput)
           
 
Method Summary
 void close()
           
 ArEntry getNextEntry()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER

public static final byte[] HEADER

ENTRY_TERMINATOR

public static final byte[] ENTRY_TERMINATOR

FIELD_SIZE_NAME

public static final int FIELD_SIZE_NAME
See Also:
Constant Field Values

FIELD_SIZE_LASTMODIFIED

public static final int FIELD_SIZE_LASTMODIFIED
See Also:
Constant Field Values

FIELD_SIZE_UID

public static final int FIELD_SIZE_UID
See Also:
Constant Field Values

FIELD_SIZE_GID

public static final int FIELD_SIZE_GID
See Also:
Constant Field Values

FIELD_SIZE_MODE

public static final int FIELD_SIZE_MODE
See Also:
Constant Field Values

FIELD_SIZE_LENGTH

public static final int FIELD_SIZE_LENGTH
See Also:
Constant Field Values

HEADER_SIZE

public static final int HEADER_SIZE
Constructor Detail

ArInputStream

public ArInputStream(InputStream pInput)
Method Detail

getNextEntry

public ArEntry getNextEntry()
                     throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © 2008. All Rights Reserved.