public class CompressedString extends Object implements Serializable
Constructor and Description |
---|
CompressedString()
Creates a instance ready to compress a string.
|
CompressedString(String string)
Creates a new instance with a given string.
|
Modifier and Type | Method and Description |
---|---|
String |
getString()
Decompresses the date to return the original string.
|
void |
setString(String string)
Compresses the string and stores it internally as byte array.
|
String |
toString() |
public CompressedString()
public CompressedString(String string)
string
- public void setString(String string)
string
- IllegalStateException
- if this instance already holds a compressed stringpublic String getString()
IllegalStateException
- if this instance does not hold any
compression binary dataCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.