public class CompressedData
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CompressedData()
Creates a instance ready to compress data.
|
CompressedData(byte[] data)
Creates a new instance with a given data.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Decompresses the data to return the original data.
|
void |
setData(byte[] data)
Compresses the data and stores it internally as byte array.
|
java.lang.String |
toString() |
public CompressedData()
public CompressedData(byte[] data)
data - public void setData(byte[] data)
data - java.lang.IllegalStateException - if this instance already holds a compressed datapublic byte[] getData()
java.lang.IllegalStateException - if this instance does not hold any
compression binary datapublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.