com.jaxfront.core.util.io
Class ZIPCompressor

java.lang.Object
  extended by com.jaxfront.core.util.io.ZIPCompressor

public class ZIPCompressor
extends java.lang.Object

Author:
SRZXUZ To change this generated comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
ZIPCompressor(java.io.OutputStream outStream)
           
ZIPCompressor(java.io.OutputStream outStream, int zipLevel)
           
 
Method Summary
 void addZipEntry(java.lang.String id)
           
 void close()
           
 void closeZipEntry()
           
 java.lang.String getIdFromStack()
           
 java.io.OutputStream getOutStream()
           
 void setBufferSize(int size)
           
 void write(byte[] toBeCompressed)
           
 void write(java.io.InputStream inStream)
           
 void writeConverted(java.io.InputStream inputStream, java.lang.String sourceEncoding)
           
static byte[] zip(byte[] value)
           
static byte[] zip(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZIPCompressor

public ZIPCompressor(java.io.OutputStream outStream)

ZIPCompressor

public ZIPCompressor(java.io.OutputStream outStream,
                     int zipLevel)
Method Detail

addZipEntry

public void addZipEntry(java.lang.String id)
                 throws java.io.IOException
Throws:
java.io.IOException

closeZipEntry

public void closeZipEntry()
                   throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.io.InputStream inStream)
           throws java.io.IOException
Throws:
java.io.IOException

writeConverted

public void writeConverted(java.io.InputStream inputStream,
                           java.lang.String sourceEncoding)
                    throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] toBeCompressed)
           throws java.io.IOException
Throws:
java.io.IOException

setBufferSize

public void setBufferSize(int size)

getOutStream

public java.io.OutputStream getOutStream()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getIdFromStack

public java.lang.String getIdFromStack()

zip

public static byte[] zip(java.io.InputStream is)
                  throws java.io.IOException
Throws:
java.io.IOException

zip

public static byte[] zip(byte[] value)
                  throws java.io.IOException
Throws:
java.io.IOException