|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.util.Checksums
public class Checksums
Checksum relevant utilities.
Field Summary | |
---|---|
static java.lang.String |
SKIPS
The default skips. |
Constructor Summary | |
---|---|
Checksums()
|
Method Summary | |
---|---|
static char |
getChecksum(java.lang.StringBuffer val,
java.lang.String skips)
Returns the checksum character of the specified val. |
static char |
getChecksum(java.lang.String val,
java.lang.String skips)
Returns the checksum character of the specified val. |
static java.lang.String |
toReadable(long val,
java.lang.String skips)
Returns a readable string plus a checksum. |
static char |
toReadableChar(int val,
java.lang.String skips)
Returns the character of the specified val by skipping skips. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SKIPS
Constructor Detail |
---|
public Checksums()
Method Detail |
---|
public static final java.lang.String toReadable(long val, java.lang.String skips)
skips
- specifies a string of characters that shall be skipped.
If null specified, "DEOX" is assumed. To skip nothing, specify "".
You can only specify upper-case letters: A-Z. And, it must be in
alphabetic order.public static final char toReadableChar(int val, java.lang.String skips)
skips
- specifies a string of characters that shall be skipped.
If null specified, "DEOX" is assumed. To skip nothing, specify "".
You can only specify upper-case letters: A-Z. And, it must be in
alphabetic order.public static final char getChecksum(java.lang.String val, java.lang.String skips)
It use toReadableChar(int, java.lang.String)
to convert the checksum to a character.
Note: it skips '-' and ' '.
skips
- specifies a string of characters that shall be skipped.
If null specified, "DEOX" is assumed. To skip nothing, specify "".
You can only specify upper-case letters: A-Z. And, it must be in
alphabetic order.public static final char getChecksum(java.lang.StringBuffer val, java.lang.String skips)
It use toReadableChar(int, java.lang.String)
to convert the checksum to a character.
Note: it skips '-' and ' '.
skips
- specifies a string of characters that shall be skipped.
If null specified, "DEOX" is assumed. To skip nothing, specify "".
You can only specify upper-case letters: A-Z. And, it must be in
alphabetic order.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |