|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<FsUriModifier.PostFix>
de.schlichtherle.truezip.fs.FsUriModifier.PostFix
@Immutable public static enum FsUriModifier.PostFix
Post-fixes a URI when it gets
canonicalized.
| Enum Constant Summary | |
|---|---|
ENTRY_NAME
The post-fix for an FsEntryName depends on the URI type:
For an opaque URI, nothing is modified. |
|
MOUNT_POINT
The post-fix for an FsMountPoint does nothing. |
|
PATH
The post-fix for an FsPath depends on the URI type:
For an opaque URI, nothing is modified. |
|
| Method Summary | |
|---|---|
(package private) abstract URI |
modify(URI uri)
An idempotent function which modifies a URI. |
static FsUriModifier.PostFix |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FsUriModifier.PostFix[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FsUriModifier.PostFix PATH
FsPath depends on the URI type:
For an opaque URI, nothing is modified.
For a hierarchical URI, its path is truncated so that it does not
end with a
"/"
separator.
In addition, if the path starts with two separators, the substring
following until the next separator is moved to the authority part
of the URI.
This behavior is intended to fix URIs returned by
File.toURI().
public static final FsUriModifier.PostFix MOUNT_POINT
FsMountPoint does nothing.
public static final FsUriModifier.PostFix ENTRY_NAME
FsEntryName depends on the URI type:
For an opaque URI, nothing is modified.
For a hierarchical URI, its path is truncated so that it does not
end with a
"/"
separator.
| Method Detail |
|---|
public static FsUriModifier.PostFix[] values()
for (FsUriModifier.PostFix c : FsUriModifier.PostFix.values()) System.out.println(c);
public static FsUriModifier.PostFix valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
abstract URI modify(URI uri)
throws URISyntaxException
uri - the URI to modify.
URISyntaxException
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||