public static enum ModuleLoader.PathEscaper extends java.lang.Enum<ModuleLoader.PathEscaper>
Enum Constant and Description |
---|
CANONICALIZE_ONLY
Does not escaped characters in paths, but does canonicalize it according to
ModuleNames.canonicalizePath(String) . |
ESCAPE
Escapes characters in paths according to
ModuleNames.escapePath(String) and then
canonicalizes it. |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
escape(java.lang.String path) |
static ModuleLoader.PathEscaper |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModuleLoader.PathEscaper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleLoader.PathEscaper ESCAPE
ModuleNames.escapePath(String)
and then
canonicalizes it.public static final ModuleLoader.PathEscaper CANONICALIZE_ONLY
ModuleNames.canonicalizePath(String)
.public static ModuleLoader.PathEscaper[] values()
for (ModuleLoader.PathEscaper c : ModuleLoader.PathEscaper.values()) System.out.println(c);
public static ModuleLoader.PathEscaper valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.lang.String escape(java.lang.String path)
Copyright © 2009-2020 Google. All Rights Reserved.