org.vafer.jdeb.ar
Class ArOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.vafer.jdeb.ar.ArOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class ArOutputStream
extends OutputStream

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
ArOutputStream(OutputStream pOut)
           
 
Method Summary
 void close()
           
 void putNextEntry(ArEntry pEntry)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
flush
 
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

ArOutputStream

public ArOutputStream(OutputStream pOut)
Method Detail

putNextEntry

public void putNextEntry(ArEntry pEntry)
                  throws IOException
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

close

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


Copyright © 2008. All Rights Reserved.