CharSequence
, Comparable<Uri.Encoded>
public static class Uri.ASCIIEncoded extends Uri.Encoded
Constructor | Description |
---|---|
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 | Description |
---|---|---|
static Uri.ASCIIEncoded |
cast(String encoded) |
Casts the given encoded String by creating a new ASCIIEncoded instance.
|
boolean |
isASCII() |
chars, codePoints
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 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