org.media.mn8.util.tar
Class TarOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--org.media.mn8.util.tar.TarOutputStream

public class TarOutputStream
extends FilterOutputStream

Version:
$Revision: 1.1 $ $Date: 2002/02/27 19:14:23 $
Author:
Szabo Csaba

Field Summary
protected  TarBuffer buffer
           
protected  int currByte
           
protected  int currSize
           
protected  byte[] oneBuf
           
protected  byte[] recordBuf
           
protected  byte[] tempBuf
           
protected  int tempLen
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
TarOutputStream(OutputStream os)
           
 
Method Summary
 void close()
           
 void closeEntry()
           
 int getRecordSize()
           
 void putNextEntry(TarEntry te)
           
 void write(byte[] buf)
           
 void write(byte[] buf, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected TarBuffer buffer

recordBuf

protected byte[] recordBuf

oneBuf

protected byte[] oneBuf

currByte

protected int currByte

currSize

protected int currSize

tempLen

protected int tempLen

tempBuf

protected byte[] tempBuf
Constructor Detail

TarOutputStream

public TarOutputStream(OutputStream os)
Method Detail

getRecordSize

public int getRecordSize()

close

public void close()
           throws IOException
Overrides:
close in class FilterOutputStream
IOException

write

public void write(int b)
           throws IOException
Overrides:
write in class FilterOutputStream
IOException

write

public void write(byte[] buf)
           throws IOException
Overrides:
write in class FilterOutputStream
IOException

write

public void write(byte[] buf,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class FilterOutputStream
IOException

putNextEntry

public void putNextEntry(TarEntry te)
                  throws IOException
IOException

closeEntry

public void closeEntry()
                throws IOException
IOException


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."