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 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 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 © 2020 DataWeb Research. All rights reserved.