@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.
FsPath,
FsMountPoint,
FsEntryName,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
scheme |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
FsScheme(java.lang.String scheme)
Constructs a new URI scheme by parsing the given string.
|
private static final long serialVersionUID
private final java.lang.String scheme
public FsScheme(@NonNull
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.@NonNull 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.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.ObjectCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.