@Immutable public static enum FsUriModifier.PostFix extends Enum<FsUriModifier.PostFix>
canonicalized.| Enum Constant and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
(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.
|
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.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 nameNullPointerException - if the argument is nullabstract URI modify(URI uri) throws URISyntaxException
uri - the URI to modify.URISyntaxExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.