public class Checksums extends Object
| Constructor and Description |
|---|
Checksums() |
| Modifier and Type | Method and Description |
|---|---|
static char |
getChecksum(StringBuffer val,
String skips)
Returns the checksum character of the specified val.
|
static char |
getChecksum(String val,
String skips)
Returns the checksum character of the specified val.
|
static String |
toReadable(long val,
String skips)
Returns a readable string plus a checksum.
|
static char |
toReadableChar(int val,
String skips)
Returns the character of the specified val by skipping skips.
|
public static final String SKIPS
public static final String toReadable(long val, 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,
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(String val, 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(StringBuffer val, 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.Copyright © 2018. All rights reserved.