Package com.jogamp.common.net
Class Uri.ASCIIEncoded
- java.lang.Object
-
- com.jogamp.common.net.Uri.Encoded
-
- com.jogamp.common.net.Uri.ASCIIEncoded
-
- All Implemented Interfaces:
CharSequence
,Comparable<Uri.Encoded>
- Enclosing class:
- Uri
public static class Uri.ASCIIEncoded extends Uri.Encoded
-
-
Constructor Summary
Constructors 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 '%'.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Uri.ASCIIEncoded
cast(String encoded)
Casts the given encoded String by creating a new ASCIIEncoded instance.boolean
isASCII()
-
Methods inherited from class com.jogamp.common.net.Uri.Encoded
charAt, compareTo, concat, decode, endsWith, equals, equalsIgnoreCase, get, hashCode, indexOf, indexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, length, startsWith, startsWith, subSequence, substring, substring, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
ASCIIEncoded
public 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 '%'.For example: Euro currency symbol -> "%E2%82%AC".
Uses
Uri.encodeToASCIIString(String)
for implementation.- Parameters:
unicode
- unencoded input
-
-
Method Detail
-
cast
public static Uri.ASCIIEncoded cast(String encoded)
Casts the given encoded String by creating a new ASCIIEncoded instance.No encoding will be performed, use with care.
-
isASCII
public boolean isASCII()
- Overrides:
isASCII
in classUri.Encoded
-
-