com.jaxfront.core.util.io
Class ZIPCompressor
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZIPCompressor
public ZIPCompressor(java.io.OutputStream outStream)
ZIPCompressor
public ZIPCompressor(java.io.OutputStream outStream,
int zipLevel)
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