@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
.
FsNodePath
,
FsMountPoint
,
FsNodeName
,
Serialized FormConstructor and Description |
---|
FsScheme(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(String scheme)
Constructs a new URI scheme by parsing the given string.
|
boolean |
equals(Object that) |
int |
hashCode() |
String |
toString()
Returns the scheme as a string.
|
@ConstructorProperties(value="scheme") 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–2018 Schlichtherle IT Services. All rights reserved.