public static class Uri.ASCIIEncoded extends Uri.Encoded
Constructor and Description |
---|
Uri.ASCIIEncoded(String unicode)
Other characters, which are Unicode chars that are not US-ASCII, and are
not ISO Control or are not ISO Space chars are not preserved
and encoded into their hexidecimal value prepended by '%'.
|
Modifier and Type | Method and Description |
---|---|
static Uri.ASCIIEncoded |
cast(String encoded)
Casts the given encoded String by creating a new ASCIIEncoded instance.
|
boolean |
isASCII() |
charAt, compareTo, concat, decode, endsWith, equals, equalsIgnoreCase, get, hashCode, indexOf, indexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, length, startsWith, startsWith, subSequence, substring, substring, toString
public Uri.ASCIIEncoded(String unicode)
For example: Euro currency symbol -> "%E2%82%AC".
Uses Uri.encodeToASCIIString(String)
for implementation.
unicode
- unencoded inputpublic static Uri.ASCIIEncoded cast(String encoded)
No encoding will be performed, use with care.
public boolean isASCII()
isASCII
in class Uri.Encoded