public abstract class RelativePath extends Object implements Comparable<RelativePath>
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
static class |
RelativePath.RelativeDirectory
Used to represent a platform-neutral subdirectory within a platform-specific
container, such as a directory or zip file.
|
static class |
RelativePath.RelativeFile
Used to represent a platform-neutral file within a platform-specific
container, such as a directory or zip file.
|
Modifier | Constructor and Description |
---|---|
protected |
RelativePath(String p) |
Modifier and Type | Method and Description |
---|---|
abstract String |
basename() |
int |
compareTo(RelativePath other) |
abstract RelativePath.RelativeDirectory |
dirname() |
boolean |
equals(Object other) |
File |
getFile(File directory) |
String |
getPath() |
int |
hashCode() |
String |
toString() |
protected final String path
protected RelativePath(String p)
p
- must use '/' as an internal separatorpublic abstract RelativePath.RelativeDirectory dirname()
public abstract String basename()
public int compareTo(RelativePath other)
compareTo
in interface Comparable<RelativePath>
public String getPath()
Copyright © 2017 earcam. All rights reserved.