com.jcraft.jzlib
Class ZInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.jcraft.jzlib.ZInputStream
All Implemented Interfaces:
Closeable

public class ZInputStream
extends FilterInputStream


Field Summary
protected  byte[] buf
           
protected  byte[] buf1
           
protected  int bufsize
           
protected  boolean compress
           
protected  int flush
           
protected  InputStream in
           
protected  ZStream z
           
 
Constructor Summary
ZInputStream(InputStream in)
           
ZInputStream(InputStream in, boolean nowrap)
           
ZInputStream(InputStream in, int level)
           
 
Method Summary
 void close()
           
 int getFlushMode()
           
 long getTotalIn()
          Returns the total number of bytes input so far.
 long getTotalOut()
          Returns the total number of bytes output so far.
 int read()
           
 int read(byte[] b, int off, int len)
           
 void setFlushMode(int flush)
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

z

protected ZStream z

bufsize

protected int bufsize

flush

protected int flush

buf

protected byte[] buf

buf1

protected byte[] buf1

compress

protected boolean compress

in

protected InputStream in
Constructor Detail

ZInputStream

public ZInputStream(InputStream in)

ZInputStream

public ZInputStream(InputStream in,
                    boolean nowrap)

ZInputStream

public ZInputStream(InputStream in,
                    int level)
Method Detail

read

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

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class FilterInputStream
Throws:
IOException

getFlushMode

public int getFlushMode()

setFlushMode

public void setFlushMode(int flush)

getTotalIn

public long getTotalIn()
Returns the total number of bytes input so far.


getTotalOut

public long getTotalOut()
Returns the total number of bytes output so far.


close

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


Copyright © 2011 Perforce Software. All Rights Reserved.