public class UnicodeEscape extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeString(String label)
Escapes a Unicode string to an all-ASCII character sequence.
|
static void |
escapeString(String label,
Appendable appendable)
Escapes a Unicode string to an all-ASCII character sequence.
|
static boolean |
isLetter(int c)
Checks whether the supplied character is a letter according to
the N-Triples specification.
|
static boolean |
isLetterOrNumber(int c)
Checks whether the supplied character is a letter or number
according to the N-Triples specification.
|
static boolean |
isNumber(int c)
Checks whether the supplied character is a number according to
the N-Triples specification.
|
static String |
toHexString(int decimal,
int stringLength)
Converts a decimal value to a hexadecimal string representation
of the specified length.
|
static String |
unescapeString(String s)
Unescapes an escaped Unicode string.
|
public static boolean isLetterOrNumber(int c)
isLetter(int),
isNumber(int)public static boolean isLetter(int c)
public static boolean isNumber(int c)
public static String escapeString(String label)
public static void escapeString(String label, Appendable appendable) throws IOException
IOExceptionpublic static String unescapeString(String s)
s - An escaped Unicode string.IllegalArgumentException - If the supplied string is not a
correctly escaped N-Triples string.public static String toHexString(int decimal, int stringLength)
decimal - A decimal value.stringLength - The length of the resulting string.Copyright © 2018 DataWeb Research. All rights reserved.