public class Tool4Zip
extends java.lang.Object
Tool4Zip
class provides functions to zip and unzip data.
title: SystemCoreLib
description: SystemCoreLib
copyright: (c) 2013 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Constructor and Description |
---|
Tool4Zip()
The constructor
Tool4Zip creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
unzipData(byte[] blobBytes,
int length)
The method
unzipData unzip's the content of a database field. |
java.io.ByteArrayOutputStream |
zipData(byte[] blobBytes,
java.lang.String fieldname)
The method
zipData zip's the content of a database field. |
public Tool4Zip()
Tool4Zip
creates a new instance(object) of the class.public java.io.ByteArrayOutputStream zipData(byte[] blobBytes, java.lang.String fieldname) throws java.lang.Exception
zipData
zip's the content of a database field.blobBytes
- byte array of content.fieldname
- the name of the field.java.lang.Exception
- if errorpublic byte[] unzipData(byte[] blobBytes, int length) throws java.lang.Exception
unzipData
unzip's the content of a database field.blobBytes
- byte array of blob content.length
- the length of the data.java.lang.Exception
- if error