Package org.unbescape.uri
Enum UriEscapeUtil.UriEscapeType
- java.lang.Object
-
- java.lang.Enum<UriEscapeUtil.UriEscapeType>
-
- org.unbescape.uri.UriEscapeUtil.UriEscapeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UriEscapeUtil.UriEscapeType>
- Enclosing class:
- UriEscapeUtil
static enum UriEscapeUtil.UriEscapeType extends java.lang.Enum<UriEscapeUtil.UriEscapeType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FRAGMENT_ID
PATH
PATH_SEGMENT
QUERY_PARAM
-
Constructor Summary
Constructors Modifier Constructor Description private
UriEscapeType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canPlusEscapeWhitespace()
abstract boolean
isAllowed(int c)
(package private) static boolean
isAlpha(int c)
private static boolean
isDigit(int c)
private static boolean
isGenDelim(int c)
private static boolean
isPchar(int c)
private static boolean
isReserved(int c)
private static boolean
isSubDelim(int c)
private static boolean
isUnreserved(int c)
static UriEscapeUtil.UriEscapeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UriEscapeUtil.UriEscapeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATH
public static final UriEscapeUtil.UriEscapeType PATH
-
PATH_SEGMENT
public static final UriEscapeUtil.UriEscapeType PATH_SEGMENT
-
QUERY_PARAM
public static final UriEscapeUtil.UriEscapeType QUERY_PARAM
-
FRAGMENT_ID
public static final UriEscapeUtil.UriEscapeType FRAGMENT_ID
-
-
Method Detail
-
values
public static UriEscapeUtil.UriEscapeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UriEscapeUtil.UriEscapeType c : UriEscapeUtil.UriEscapeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UriEscapeUtil.UriEscapeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isAllowed
public abstract boolean isAllowed(int c)
-
canPlusEscapeWhitespace
public boolean canPlusEscapeWhitespace()
-
isPchar
private static boolean isPchar(int c)
-
isUnreserved
private static boolean isUnreserved(int c)
-
isReserved
private static boolean isReserved(int c)
-
isSubDelim
private static boolean isSubDelim(int c)
-
isGenDelim
private static boolean isGenDelim(int c)
-
isAlpha
static boolean isAlpha(int c)
-
isDigit
private static boolean isDigit(int c)
-
-