public final class XWwwFormUrlEncoded extends java.lang.Object implements UriEncoded
ParameterList to x-www-form-urlencoded a UriEncoded.
Note, this can't be decoded as a whole. Calling decoded() or decoded(String) with result in an Exception.
| Constructor and Description |
|---|
XWwwFormUrlEncoded(ParameterList params) |
XWwwFormUrlEncoded(ParameterList params,
java.lang.String charset) |
| 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.
|
int |
length() |
UriEncoded |
normalized()
Returns a normalized version of this
UriEncoded. |
UriEncoded |
subSequence(int startIndex,
int endIndex) |
java.lang.String |
toString() |
public XWwwFormUrlEncoded(ParameterList params)
public XWwwFormUrlEncoded(ParameterList params, java.lang.String charset)
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 java.lang.String toString()
toString in interface java.lang.CharSequencetoString in interface UriEncodedtoString in class java.lang.Object