public final class Precoded extends java.lang.Object implements UriEncoded
| Constructor and Description |
|---|
Precoded(java.lang.CharSequence encoded) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int i) |
java.lang.CharSequence |
decoded()
Returns the decoded text assuming UTF-8 encoding.
|
java.lang.CharSequence |
decoded(java.lang.String charset)
Returns the decoded text, using the given charset to decode the non-ASCII characters.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
length() |
UriEncoded |
normalized()
Returns a normalized version of this
UriEncoded. |
UriEncoded |
subSequence(int startIndex,
int endIndex) |
java.lang.String |
toString() |
public UriEncoded normalized()
UriEncodedUriEncoded. In particular that means any percent-encoded unreserved characters are decoded and
percent-encoding sequences are converted to uppercase.normalized in interface UriEncodedUriEncoded.public java.lang.CharSequence decoded(java.lang.String charset)
throws java.io.UnsupportedEncodingException
UriEncodeddecoded in interface UriEncodedcharset - The name of the charset.java.io.UnsupportedEncodingExceptionpublic java.lang.CharSequence decoded()
UriEncodeddecoded in interface UriEncodedpublic int length()
length in interface java.lang.CharSequencepublic char charAt(int i)
charAt in interface java.lang.CharSequencepublic UriEncoded subSequence(int startIndex, int endIndex)
subSequence in interface java.lang.CharSequencesubSequence in interface UriEncodedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.lang.CharSequencetoString in interface UriEncodedtoString in class java.lang.Object