Package org.unbescape.uri
Enum UriEscapeUtil.UriEscapeType
- All Implemented Interfaces:
Serializable
,Comparable<UriEscapeUtil.UriEscapeType>
,java.lang.constant.Constable
- Enclosing class:
UriEscapeUtil
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
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 Details
-
PATH
-
PATH_SEGMENT
-
QUERY_PARAM
-
FRAGMENT_ID
-
-
Constructor Details
-
UriEscapeType
private UriEscapeType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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)
-