TrueZIP 6.8.3

de.schlichtherle.util.zip
Class BasicZipOutputStream.ZipDeflater

java.lang.Object
  extended by java.util.zip.Deflater
      extended by de.schlichtherle.util.zip.BasicZipOutputStream.ZipDeflater
Enclosing class:
BasicZipOutputStream

private static class BasicZipOutputStream.ZipDeflater
extends Deflater

A Deflater which can be asked for its current deflation level and counts input and output data length as a long integer value.


Field Summary
private  int level
           
private  long read
           
private  long written
           
 
Fields inherited from class java.util.zip.Deflater
BEST_COMPRESSION, BEST_SPEED, DEFAULT_COMPRESSION, DEFAULT_STRATEGY, DEFLATED, FILTERED, HUFFMAN_ONLY, NO_COMPRESSION
 
Constructor Summary
BasicZipOutputStream.ZipDeflater()
           
 
Method Summary
 int deflate(byte[] b, int off, int len)
           
 long getBytesRead()
          Returns the total number of uncompressed bytes input so far.
 long getBytesWritten()
          Returns the total number of compressed bytes output so far.
 int getLevel()
           
 void reset()
           
 void setInput(byte[] b, int off, int len)
           
 void setLevel(int level)
           
 
Methods inherited from class java.util.zip.Deflater
deflate, end, finalize, finish, finished, getAdler, getTotalIn, getTotalOut, needsInput, setDictionary, setDictionary, setInput, setStrategy
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

private int level

read

private long read

written

private long written
Constructor Detail

BasicZipOutputStream.ZipDeflater

public BasicZipOutputStream.ZipDeflater()
Method Detail

setInput

public void setInput(byte[] b,
                     int off,
                     int len)
Overrides:
setInput in class Deflater

getLevel

public int getLevel()

setLevel

public void setLevel(int level)
Overrides:
setLevel in class Deflater

deflate

public int deflate(byte[] b,
                   int off,
                   int len)
Overrides:
deflate in class Deflater

getBytesRead

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

Overrides:
getBytesRead in class Deflater

getBytesWritten

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

Overrides:
getBytesWritten in class Deflater

reset

public void reset()
Overrides:
reset in class Deflater

TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.