Package com.killcoding.tool
Class CodeEscapeUtil
java.lang.Object
com.killcoding.tool.CodeEscapeUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final charprivate static final charprivate static final char[]private static final charprivate static char[]private static char[]private static char[]private static intprivate static char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcodePointAt(char c1, char c2) (package private) static voidescape(char[] text, int offset, int len, Writer writer, CodeEscapeLevel escapeLevel) (package private) static voidescape(Reader reader, Writer writer, CodeEscapeLevel escapeLevel) (package private) static Stringescape(String text, CodeEscapeLevel escapeLevel) (package private) static booleanisOctalEscape(char[] text, int start, int end) (package private) static booleanisOctalEscape(String text, int start, int end) (package private) static intparseIntFromReference(char[] text, int start, int end, int radix) (package private) static intparseIntFromReference(String text, int start, int end, int radix) (package private) static booleanrequiresUnicodeUnescape(char[] text, int offset, int len) (package private) static char[]toUHexa(int codepoint) (package private) static void(package private) static void(package private) static String(package private) static voidunicodeUnescape(char[] text, int offset, int len, Writer writer) (package private) static StringunicodeUnescape(String text)
-
Field Details
-
ESCAPE_PREFIX
- See Also:
-
ESCAPE_UHEXA_PREFIX2
- See Also:
-
ESCAPE_UHEXA_PREFIX
-
HEXA_CHARS_UPPER
-
HEXA_CHARS_LOWER
-
SEC_CHARS_LEN
-
SEC_CHARS_NO_SEC
-
SEC_CHARS
-
ESCAPE_LEVELS_LEN
- See Also:
-
ESCAPE_LEVELS
-
-
Constructor Details
-
CodeEscapeUtil
private CodeEscapeUtil()
-
-
Method Details
-
toUHexa
-
escape
-
escape
- Throws:
IOException
-
escape
static void escape(char[] text, int offset, int len, Writer writer, CodeEscapeLevel escapeLevel) throws IOException - Throws:
IOException
-
parseIntFromReference
-
parseIntFromReference
-
isOctalEscape
-
isOctalEscape
-
unicodeUnescape
-
requiresUnicodeUnescape
-
unicodeUnescape
- Throws:
IOException
-
unescape
-
unescape
- Throws:
IOException
-
unescape
- Throws:
IOException
-
codePointAt
-