Inherited by SerializingTranscoder, and WhalinTranscoder.

Public Member Functions | |
| void | setCharset (String to) |
| void | setCompressionThreshold (int to) |
Static Public Attributes | |
| static final int | DEFAULT_COMPRESSION_THRESHOLD = 16384 |
Protected Member Functions | |
| byte[] | compress (byte[] in) |
| String | decodeString (byte[] data) |
| byte[] | decompress (byte[] in) |
| Object | deserialize (byte[] in) |
| byte[] | encodeString (String in) |
| byte[] | serialize (Object o) |
Protected Attributes | |
| String | charset = DEFAULT_CHARSET |
| int | compressionThreshold = DEFAULT_COMPRESSION_THRESHOLD |
Static Private Attributes | |
| static final String | DEFAULT_CHARSET = "UTF-8" |
| byte [] compress | ( | byte[] | in | ) | [protected] |
Compress the given array of bytes.
| String decodeString | ( | byte[] | data | ) | [protected] |
Decode the string with the current character set.
| byte [] decompress | ( | byte[] | in | ) | [protected] |
Decompress the given array of bytes.
| Object deserialize | ( | byte[] | in | ) | [protected] |
Get the object represented by the given serialized bytes.
| byte [] encodeString | ( | String | in | ) | [protected] |
Encode a string into the current character set.
| byte [] serialize | ( | Object | o | ) | [protected] |
Get the bytes representing the given serialized object.
| void setCharset | ( | String | to | ) |
Set the character set for string value transcoding (defaults to UTF-8).
| void setCompressionThreshold | ( | int | to | ) |
Set the compression threshold to the given number of bytes. This transcoder will attempt to compress any data being stored that's larger than this.
| to | the number of bytes |
String charset = DEFAULT_CHARSET [protected] |
int compressionThreshold = DEFAULT_COMPRESSION_THRESHOLD [protected] |
final String DEFAULT_CHARSET = "UTF-8" [static, private] |
final int DEFAULT_COMPRESSION_THRESHOLD = 16384 [static] |
Default compression threshold value.
1.5.8