| java.lang.Object org.zkoss.util.Checksums
Checksums | public class Checksums (Code) | | Checksum relevant utilities.
author: tomyeh |
Field Summary | |
final public static String | SKIPS The default skips. |
Method Summary | |
final public static char | getChecksum(String val, String skips) Returns the checksum character of the specified val.
It use
Checksums.toReadableChar to convert the checksum to a character.
Note: it skips '-' and ' '.
Parameters: skips - specifies a string of characters that shall be skipped.If null specified, "DEOX" is assumed. | final public static char | getChecksum(StringBuffer val, String skips) Returns the checksum character of the specified val.
It use
Checksums.toReadableChar to convert the checksum to a character.
Note: it skips '-' and ' '.
Parameters: skips - specifies a string of characters that shall be skipped.If null specified, "DEOX" is assumed. | final public static String | toReadable(long val, String skips) Returns a readable string plus a checksum.
Parameters: skips - specifies a string of characters that shall be skipped.If null specified, "DEOX" is assumed. | final public static char | toReadableChar(int val, String skips) Returns the character of the specified val by skiping skips.
Note: the caller must ensure val is in the right range:
0 - (36 - skips.length()).
Parameters: skips - specifies a string of characters that shall be skipped.If null specified, "DEOX" is assumed. |
SKIPS | final public static String SKIPS(Code) | | The default skips.
|
getChecksum | final public static char getChecksum(String val, String skips)(Code) | | Returns the checksum character of the specified val.
It use
Checksums.toReadableChar to convert the checksum to a character.
Note: it skips '-' and ' '.
Parameters: 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 leters: A-Z. And, it must be inalphabetic order. |
getChecksum | final public static char getChecksum(StringBuffer val, String skips)(Code) | | Returns the checksum character of the specified val.
It use
Checksums.toReadableChar to convert the checksum to a character.
Note: it skips '-' and ' '.
Parameters: 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 leters: A-Z. And, it must be inalphabetic order. |
toReadable | final public static String toReadable(long val, String skips)(Code) | | Returns a readable string plus a checksum.
Parameters: 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 leters: A-Z. And, it must be inalphabetic order. |
toReadableChar | final public static char toReadableChar(int val, String skips)(Code) | | Returns the character of the specified val by skiping skips.
Note: the caller must ensure val is in the right range:
0 - (36 - skips.length()).
Parameters: 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 leters: A-Z. And, it must be inalphabetic order. |
|
|