public class CompressedString
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description | 
|---|
CompressedString()
Creates a instance ready to compress a string. 
 | 
CompressedString(java.lang.String string)
Creates a new instance with a given string. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getString()
Decompresses the date to return the original string. 
 | 
void | 
setString(java.lang.String string)
Compresses the string and stores it internally as byte array. 
 | 
java.lang.String | 
toString()  | 
public CompressedString()
public CompressedString(java.lang.String string)
string - public void setString(java.lang.String string)
string - java.lang.IllegalStateException - if this instance already holds a compressed stringpublic java.lang.String getString()
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.