Package | Description |
---|---|
nl.esciencecenter.xenon.files |
This package contains classes and interfaces for manipulating files.
|
nl.esciencecenter.xenon.util |
This package is contains several utility classes.
|
Modifier and Type | Method and Description |
---|---|
RelativePath |
RelativePath.getFileName()
Get the file name, or
null if the RelativePath is empty. |
RelativePath |
RelativePath.getName(int index)
Get a name element of this RelativePath.
|
RelativePath |
RelativePath.getParent()
Get the parent RelativePath, or
null if this RelativePath does not have a parent. |
RelativePath |
Path.getRelativePath()
Get the location relative to the root of the FileSystem.
|
RelativePath |
RelativePath.normalize()
Normalize this RelativePath by removing as many redundant path elements as possible.
|
RelativePath |
RelativePath.relativize(RelativePath other)
Create a relative RelativePath between the given RelativePath and this RelativePath.
|
RelativePath |
RelativePath.resolve(RelativePath other)
Resolve a RelativePath against this RelativePath.
|
RelativePath |
RelativePath.resolve(String other)
Resolve a String containing a RelativePath against this path.
|
RelativePath |
RelativePath.resolveSibling(RelativePath other)
Resolves the given RelativePath to this paths parent RelativePath, thereby creating a sibling to this RelativePath.
|
RelativePath |
RelativePath.subpath(int beginIndex,
int endIndex)
Returns a RelativePath that is a subsequence of the name elements of this path.
|
Modifier and Type | Method and Description |
---|---|
Iterator<RelativePath> |
RelativePath.iterator()
Create an
Iterator that returns all possible sub RelativePaths of this RelativePath, in order of increasing length. |
Modifier and Type | Method and Description |
---|---|
boolean |
RelativePath.endsWith(RelativePath other)
Tests if this RelativePath ends with the given RelativePath.
|
Path |
Files.newPath(FileSystem filesystem,
RelativePath location)
Create a new Path that represents a (possibly non existing) location on
filesystem. |
RelativePath |
RelativePath.relativize(RelativePath other)
Create a relative RelativePath between the given RelativePath and this RelativePath.
|
RelativePath |
RelativePath.resolve(RelativePath other)
Resolve a RelativePath against this RelativePath.
|
RelativePath |
RelativePath.resolveSibling(RelativePath other)
Resolves the given RelativePath to this paths parent RelativePath, thereby creating a sibling to this RelativePath.
|
boolean |
RelativePath.startsWith(RelativePath other)
Tests if this RelativePath starts with the given RelativePath.
|
Constructor and Description |
---|
RelativePath(RelativePath... paths)
Create a new RelativePath by appending the provided
paths . |
Modifier and Type | Method and Description |
---|---|
static RelativePath |
Utils.getRelativePath(String path,
String root)
Provided with an absolute
path and a root , this method returns a RelativePath that
represents the part of path that is realtive to the root . |