Package org.unbescape.uri
Class UriEscapeUtil
java.lang.Object
org.unbescape.uri.UriEscapeUtil
Internal class in charge of performing the real escape/unescape operations.
- Since:
- 1.1.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char
private static char[]
private static char[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
codePointAt
(char c1, char c2) (package private) static void
escape
(char[] text, int offset, int len, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) (package private) static void
escape
(Reader reader, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) (package private) static String
escape
(String text, UriEscapeUtil.UriEscapeType escapeType, String encoding) (package private) static byte
parseHexa
(char c1, char c2) (package private) static char[]
printHexa
(byte b) (package private) static void
unescape
(char[] text, int offset, int len, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) (package private) static void
unescape
(Reader reader, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) (package private) static String
unescape
(String text, UriEscapeUtil.UriEscapeType escapeType, String encoding)
-
Field Details
-
ESCAPE_PREFIX
private static final char ESCAPE_PREFIX- See Also:
-
HEXA_CHARS_UPPER
private static char[] HEXA_CHARS_UPPER -
HEXA_CHARS_LOWER
private static char[] HEXA_CHARS_LOWER
-
-
Constructor Details
-
UriEscapeUtil
private UriEscapeUtil()
-
-
Method Details
-
printHexa
static char[] printHexa(byte b) -
parseHexa
static byte parseHexa(char c1, char c2) -
escape
-
escape
static void escape(Reader reader, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) throws IOException - Throws:
IOException
-
escape
static void escape(char[] text, int offset, int len, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) throws IOException - Throws:
IOException
-
unescape
-
unescape
static void unescape(Reader reader, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) throws IOException - Throws:
IOException
-
unescape
static void unescape(char[] text, int offset, int len, Writer writer, UriEscapeUtil.UriEscapeType escapeType, String encoding) throws IOException - Throws:
IOException
-
codePointAt
private static int codePointAt(char c1, char c2)
-