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
-
Constructor Summary
ConstructorsConstructorDescriptionASCIIEncoded(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
Modifier and TypeMethodDescriptionstatic Uri.ASCIIEncodedCasts the given encoded String by creating a new ASCIIEncoded instance.booleanisASCII()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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
ASCIIEncoded
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 Details
-
cast
Casts the given encoded String by creating a new ASCIIEncoded instance.No encoding will be performed, use with care.
-
isASCII
public boolean isASCII()- Overrides:
isASCIIin classUri.Encoded
-