org.media.mn8.util.tar
Class TarInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--org.media.mn8.util.tar.TarInputStream

public class TarInputStream
extends FilterInputStream

Version:
$Revision: 1.1 $ $Date: 2002/02/27 19:09:47 $
Author:
Szabo Csaba

Field Summary
protected  TarBuffer buffer
           
protected  TarEntry currEntry
           
protected  int entryOffset
           
protected  int entrySize
           
protected  boolean hasEOF
           
protected  byte[] oneBuf
           
protected  byte[] readBuf
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
TarInputStream(InputStream is)
           
 
Method Summary
 int available()
           
 void close()
           
 TarEntry getNextEntry()
           
 int getRecordSize()
           
 int read()
           
 int read(byte[] buf)
           
 int read(byte[] buf, int offset, int length)
           
 void skip(int nSkip)
           
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected TarBuffer buffer

readBuf

protected byte[] readBuf

oneBuf

protected byte[] oneBuf

hasEOF

protected boolean hasEOF

currEntry

protected TarEntry currEntry

entrySize

protected int entrySize

entryOffset

protected int entryOffset
Constructor Detail

TarInputStream

public TarInputStream(InputStream is)
Method Detail

getRecordSize

public int getRecordSize()

available

public int available()
              throws IOException
Overrides:
available in class FilterInputStream
IOException

close

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

skip

public void skip(int nSkip)
          throws IOException
IOException

read

public int read()
         throws IOException
Overrides:
read in class FilterInputStream
IOException

read

public int read(byte[] buf)
         throws IOException
Overrides:
read in class FilterInputStream
IOException

read

public int read(byte[] buf,
                int offset,
                int length)
         throws IOException
Overrides:
read in class FilterInputStream
IOException

getNextEntry

public TarEntry getNextEntry()
                      throws IOException
IOException


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