|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.utilities.compression.ZIPCompressionService
public class ZIPCompressionService
This Class implements ICompressionService interface using the java.util.zip classes.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
The logging implementation for this class. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
ZIPCompressionService()
Creates a new instance of ZIPCompressionService. |
|
| Method Summary | |
|---|---|
byte[] |
compress(byte[] originalData)
Compress input data. |
byte[] |
compress(java.io.InputStream originalData)
Compress input data. |
byte[] |
decompress(byte[] compressedData)
Decompress input data. |
byte[] |
decompress(java.io.InputStream compressedData)
Decompress input data. |
static void |
main(java.lang.String[] args)
main() - For Testing and sandboxing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected java.lang.String thisClassName
| Constructor Detail |
|---|
public ZIPCompressionService()
| Method Detail |
|---|
public byte[] compress(byte[] originalData)
throws java.lang.Exception
compress in interface ICompressionServiceoriginalData - The data to compress as a byte[].
java.lang.Exception - if there is a problem compressing the data.
public byte[] compress(java.io.InputStream originalData)
throws java.lang.Exception
compress in interface ICompressionServiceoriginalData - The data to compress as a InputStream.
java.lang.Exception - if there is a problem compressing the data.
public byte[] decompress(byte[] compressedData)
throws java.lang.Exception
decompress in interface ICompressionServicecompressedData - The data to decompress as a byte[].
java.lang.Exception - if there is a problem decompressing the data.
public byte[] decompress(java.io.InputStream compressedData)
throws java.lang.Exception
decompress in interface ICompressionServicecompressedData - The data to decompress as an InputStream.
java.lang.Exception - if there is a problem decompressing the data.public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||