public class PathCpi extends Object implements Path
Modifier and Type | Class and Description |
---|---|
private static class |
PathCpi.PathIterator |
Modifier and Type | Field and Description |
---|---|
private String |
adaptorName |
private Credentials |
credentials |
private String[] |
elements |
private URI |
location |
private OctopusEngine |
octopusEngine |
private ImmutableTypedProperties |
properties |
private String |
root |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
|
PathCpi(ImmutableTypedProperties properties,
Credentials credentials,
URI location,
String adaptorName,
OctopusEngine octopusEngine) |
private |
PathCpi(ImmutableTypedProperties properties,
Credentials credentials,
URI baseLocation,
String adaptorName,
OctopusEngine octopusEngine,
String root,
String... elements) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Path other) |
private static URI |
createURIFor(URI location,
String root,
String... elements) |
boolean |
endsWith(Path other) |
boolean |
endsWith(String other) |
String |
getAdaptorName() |
Credentials |
getCredentials() |
Path |
getFileName() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
String |
getPath() |
ImmutableTypedProperties |
getProperties() |
Path |
getRoot() |
boolean |
isAbsolute() |
boolean |
isLocal() |
Iterator<Path> |
iterator() |
Path |
normalize() |
Path |
relativize(Path other) |
Path |
resolve(Path other) |
Path |
resolve(String other) |
Path |
resolveSibling(Path other) |
Path |
resolveSibling(String other) |
boolean |
startsWith(Path other) |
boolean |
startsWith(String other) |
Path |
subpath(int beginIndex,
int endIndex) |
Path |
toAbsolutePath()
Note: this will most likely only work for local files
|
String |
toString() |
URI |
toUri() |
private static final long serialVersionUID
private final ImmutableTypedProperties properties
private final Credentials credentials
private final URI location
private final String root
private final String[] elements
private final String adaptorName
private final OctopusEngine octopusEngine
public PathCpi(ImmutableTypedProperties properties, Credentials credentials, URI location, String adaptorName, OctopusEngine octopusEngine)
private PathCpi(ImmutableTypedProperties properties, Credentials credentials, URI baseLocation, String adaptorName, OctopusEngine octopusEngine, String root, String... elements)
public boolean isAbsolute()
isAbsolute
in interface Path
public Path getFileName()
getFileName
in interface Path
public int getNameCount()
getNameCount
in interface Path
public boolean startsWith(Path other)
startsWith
in interface Path
public boolean startsWith(String other)
startsWith
in interface Path
public Path resolve(String other) throws OctopusException
resolve
in interface Path
OctopusException
public Path resolveSibling(Path other)
resolveSibling
in interface Path
public Path resolveSibling(String other) throws OctopusException
resolveSibling
in interface Path
OctopusException
public Path relativize(Path other) throws OctopusException
relativize
in interface Path
OctopusException
public ImmutableTypedProperties getProperties()
getProperties
in interface Path
public Credentials getCredentials()
getCredentials
in interface Path
public Path toAbsolutePath() throws OctopusException
Path
toAbsolutePath
in interface Path
OctopusException
public String getAdaptorName()
getAdaptorName
in interface Path