Package | Description |
---|---|
com.google.common.escape |
Interfaces, utilities, and simple implementations of escapers and encoders.
|
com.google.common.escape.testing |
Testing utilities for use in tests of
com.google.common.escape . |
com.google.common.net |
This package contains utility methods and classes for working with net addresses (numeric IP and
domain names).
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayBasedUnicodeEscaper
A
UnicodeEscaper that uses an array to quickly look up replacement characters for a given
code point. |
Modifier and Type | Method and Description |
---|---|
static String |
Escapers.computeReplacement(UnicodeEscaper escaper,
int cp)
Returns a string that would replace the given character in the specified escaper, or
null if no replacement should be made. |
Modifier and Type | Method and Description |
---|---|
static void |
EscaperAsserts.assertEscaping(UnicodeEscaper escaper,
String expected,
int cp)
Asserts that a Unicode escaper escapes the given code point into the
expected string.
|
static void |
EscaperAsserts.assertUnescaped(UnicodeEscaper escaper,
int cp)
Asserts that a Unicode escaper does not escape the given character.
|
static void |
EscaperAsserts.assertUnicodeEscaping(UnicodeEscaper escaper,
String expected,
char hi,
char lo)
Asserts that a Unicode escaper escapes the given hi/lo surrogate pair into
the expected string.
|
Modifier and Type | Class and Description |
---|---|
class |
PercentEscaper
A
UnicodeEscaper that escapes some set of Java characters using a UTF-8 based percent
encoding scheme. |
Copyright © 2010–2019. All rights reserved.