@Immutable public final class FsScheme extends Object implements Serializable, 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 String |
scheme |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
FsScheme(String scheme)
Constructs a new URI scheme by parsing the given string.
|
private static final long serialVersionUID
private final String scheme
public FsScheme(@NonNull
String scheme)
throws URISyntaxException
scheme - the URI scheme.URISyntaxException - if scheme does not conform to the
syntax constraints for URI schemes.@NonNull public static FsScheme create(String scheme)
new FsScheme(scheme)
and wraps any thrown URISyntaxException in an
IllegalArgumentException.scheme - the URI scheme.IllegalArgumentException - if scheme does not conform to
the syntax constraints for URI schemes.public int compareTo(FsScheme that)
compareTo in interface Comparable<FsScheme>Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.