@Immutable public final class FsScheme extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<FsScheme>
URI scheme according to the syntax
constraints defined in
RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax.
This class supports serialization with both
ObjectOutputStream and XMLEncoder.
FsNodePath,
FsMountPoint,
FsNodeName,
Serialized Form| Constructor and Description |
|---|
FsScheme(java.lang.String scheme)
Constructs a new URI scheme by parsing the given string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FsScheme that) |
static FsScheme |
create(java.lang.String scheme)
Constructs a new URI scheme by parsing the given string.
|
boolean |
equals(java.lang.Object that) |
java.lang.String |
getScheme()
Deprecated.
This method is solely provided to support
XMLEncoder/XMLDecoder.
Applications should call toString() instead. |
int |
hashCode() |
java.lang.String |
toString()
Returns the scheme as a string.
|
@ConstructorProperties(value="scheme")
public FsScheme(java.lang.String scheme)
throws java.net.URISyntaxException
scheme - the URI scheme.java.net.URISyntaxException - if scheme does not conform to the
syntax constraints for URI schemes.public static FsScheme create(java.lang.String scheme)
new FsScheme(scheme)
and wraps any thrown URISyntaxException in an
IllegalArgumentException.scheme - the URI scheme.java.lang.IllegalArgumentException - if scheme does not conform to
the syntax constraints for URI schemes.@Deprecated public java.lang.String getScheme()
XMLEncoder/XMLDecoder.
Applications should call toString() instead.public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int compareTo(FsScheme that)
compareTo in interface java.lang.Comparable<FsScheme>public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object