|
EspressReport v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--quadbase.common.util.internal.Coder
This class is used to encode/decode character strings A string is encoded into another string using XOR with a code string, and a checksum is appended to the end of the new string. Decoding is accomplished by the same operation (XOR) of the encoded string and the code string.
| Constructor Summary | |
Coder()
|
|
| Method Summary | |
static int |
computeSum(java.lang.String str)
computes checksum of a string |
static java.lang.String |
decode(java.lang.String str)
|
static java.lang.String |
decode(java.lang.String str,
int version)
decodes a string using the default code string |
static java.lang.String |
decode(java.lang.String str,
java.lang.String code)
decodes a string |
static java.lang.String |
encode(java.lang.String str)
encodes a string using the default code string |
static java.lang.String |
encode(java.lang.String str,
java.lang.String code)
encodes a string |
static java.lang.String |
getDefaultCodeStr()
returns the default code string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Coder()
| Method Detail |
public static java.lang.String getDefaultCodeStr()
public static java.lang.String encode(java.lang.String str)
str - string to encode
public static java.lang.String encode(java.lang.String str,
java.lang.String code)
str - string to encodecode - code string
public static java.lang.String decode(java.lang.String str,
int version)
str - string to decodepublic static java.lang.String decode(java.lang.String str)
public static java.lang.String decode(java.lang.String str,
java.lang.String code)
str - string to decodecode - code stringpublic static int computeSum(java.lang.String str)
str - string to compute sum of
|
EspressReport v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||