public class UtfTester
extends java.lang.Object
SchemaHelper
$Id $
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromHexString(java.lang.String s)
Convert a hex string to a byte array.
|
static boolean |
isUtf8(char ch) |
static boolean |
isUtf8(java.io.File file) |
static boolean |
isUtf8(java.lang.String s) |
static void |
main(java.lang.String[] args) |
static java.lang.String |
toHexString(byte[] b) |
public static boolean isUtf8(java.io.File file) throws java.lang.Exception
java.lang.Exception
public static boolean isUtf8(java.lang.String s)
public static boolean isUtf8(char ch) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.String toHexString(byte[] b)
public static byte[] fromHexString(java.lang.String s)
s
- String must have even number of characters.
and be formed only of digits 0-9 A-F or
a-f. No spaces, minus or plus signs.