public final class SimpleFragment extends java.lang.Object implements Fragment
| Constructor and Description |
|---|
SimpleFragment(ParameterList parameters) |
SimpleFragment(UriEncoded fragment) |
| 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()
Returns the encoded String representation of the fragment.
|
public SimpleFragment(ParameterList parameters)
public SimpleFragment(UriEncoded fragment)
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()
FragmenttoString in interface java.lang.CharSequencetoString in interface FragmenttoString in interface UriEncodedtoString in class java.lang.ObjectString representing the encoded fragment.