Package io.datarouter.storage.util
Class Subpath
java.lang.Object
io.datarouter.storage.util.Subpath
Represents an extension of a Path. Always uses slashes to simplify application development.
Empty segments are accepted but not encouraged which allows parsing of things like S3 keys that might have double
slashes,
Strange characters are allowed by not encouraged which allows parsing paths that you don't control,
Immutable: appending returns a new SubpathPath with a new array of segments.
When rendered:
- starts without slash
- empty segments results in empty string
- each segment is suffixed with a slash: a/b/c/
A rendered copy of the toString value is calculated on creation because some root directories can be read a lot.
-
Constructor Summary
Constructors -
Method Summary