net.lingala.zip4j.io
Class DeflaterOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.lingala.zip4j.io.BaseOutputStream
          extended by net.lingala.zip4j.io.CipherOutputStream
              extended by net.lingala.zip4j.io.DeflaterOutputStream
All Implemented Interfaces:
Closeable, Flushable
Direct Known Subclasses:
ZipOutputStream

public class DeflaterOutputStream
extends CipherOutputStream


Field Summary
protected  Deflater deflater
           
 
Fields inherited from class net.lingala.zip4j.io.CipherOutputStream
crc, fileHeader, localFileHeader, outputStream, zipModel, zipParameters
 
Constructor Summary
DeflaterOutputStream(OutputStream outputStream, ZipModel zipModel)
           
 
Method Summary
 void closeEntry()
           
 void finish()
           
 void putNextEntry(File file, ZipParameters zipParameters)
           
 void write(byte[] b)
           
 void write(byte[] buf, int off, int len)
           
 void write(int bval)
           
 
Methods inherited from class net.lingala.zip4j.io.CipherOutputStream
close, decrementCompressedFileSize, getSourceFile, setSourceFile, updateTotalBytesRead
 
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

deflater

protected Deflater deflater
Constructor Detail

DeflaterOutputStream

public DeflaterOutputStream(OutputStream outputStream,
                            ZipModel zipModel)
Method Detail

putNextEntry

public void putNextEntry(File file,
                         ZipParameters zipParameters)
                  throws ZipException
Overrides:
putNextEntry in class CipherOutputStream
Throws:
ZipException

write

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

write

public void write(int bval)
           throws IOException
Overrides:
write in class CipherOutputStream
Throws:
IOException

write

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

closeEntry

public void closeEntry()
                throws IOException,
                       ZipException
Overrides:
closeEntry in class CipherOutputStream
Throws:
IOException
ZipException

finish

public void finish()
            throws IOException,
                   ZipException
Overrides:
finish in class CipherOutputStream
Throws:
IOException
ZipException


Copyright © 2012. All Rights Reserved.