@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| Constructor and Description |
|---|
FsScheme(String scheme)
Constructs a new URI scheme by parsing the given string.
|
public FsScheme(String scheme) throws URISyntaxException
scheme - the URI scheme.URISyntaxException - if scheme does not conform to the
syntax constraints for URI schemes.public int compareTo(FsScheme that)
compareTo in interface Comparable<FsScheme>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.Copyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.