public abstract class Path extends Object implements Iterable<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
Path.Absolute |
static class |
Path.Relative |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dir
.
|
static Path.Relative |
EMPTY
.
|
protected String[] |
names
.
|
static Path.Absolute |
ROOT
.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Path.Absolute |
absolute() |
Path |
append(String name,
boolean dir) |
protected abstract Path |
create(boolean dir,
String[] names) |
boolean |
equals(Object o) |
static Path |
get(File file) |
static Path |
get(String s) |
String |
getName() |
int |
getSize() |
String |
getValue()
Returns the canonical path value.
|
int |
hashCode() |
abstract boolean |
isAbsolute() |
boolean |
isChildOf(Path parent) |
boolean |
isDir() |
Iterator<String> |
iterator() |
String |
nameAt(int index) |
String |
toString() |
public static final Path.Absolute ROOT
public static final Path.Relative EMPTY
protected final boolean dir
protected final String[] names
public abstract boolean isAbsolute()
public abstract Path.Absolute absolute()
public int getSize()
public boolean isDir()
public String getName()
public String nameAt(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic boolean isChildOf(Path parent)
public String getValue()
Copyright © 2015 eXo Platform SAS. All Rights Reserved.