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
.
|
private static String[] |
EMPTY_STRING
.
|
protected String[] |
names
.
|
static Path.Absolute |
ROOT
.
|
private String |
value
.
|
Modifier | Constructor and Description |
---|---|
private |
Path(boolean dir,
String[] names) |
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) |
private static String[] |
parseNames(String s,
int prev,
int end,
int count) |
private static String[] |
path(File file,
int size) |
String |
toString() |
private static final String[] EMPTY_STRING
public static final Path.Absolute ROOT
public static final Path.Relative EMPTY
protected final boolean dir
private static String[] parseNames(String s, int prev, int end, int count)
public abstract boolean isAbsolute()
public abstract Path.Absolute absolute()
public int getSize()
public boolean isDir()
public String nameAt(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.