public interface UriEncoded
extends java.lang.CharSequence
CharSequence.
Note that two UriEncoded objects are considered equal if their encoded and normalized values are equal.
All implementations of this must also implement toString() to return a String representation of the encoded value.
| Modifier and Type | Method and Description |
|---|---|
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.
|
UriEncoded |
normalized()
Returns a normalized version of this
UriEncoded. |
UriEncoded |
subSequence(int startIndex,
int endIndex) |
java.lang.String |
toString() |
UriEncoded normalized()
UriEncoded. In particular that means any percent-encoded unreserved characters are decoded and
percent-encoding sequences are converted to uppercase.UriEncoded.java.lang.CharSequence decoded(java.lang.String charset)
throws java.io.UnsupportedEncodingException
charset - The name of the charset.java.io.UnsupportedEncodingExceptionjava.lang.CharSequence decoded()
UriEncoded subSequence(int startIndex, int endIndex)
subSequence in interface java.lang.CharSequencejava.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Object