|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.vfs.Path
public abstract class Path
| Nested Class Summary | |
|---|---|
static class |
Path.Absolute
|
static class |
Path.Relative
|
| Field Summary | |
|---|---|
protected boolean |
dir
. |
static Path.Relative |
EMPTY
. |
protected String[] |
names
. |
static Path.Absolute |
ROOT
. |
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Path.Absolute ROOT
public static final Path.Relative EMPTY
protected final boolean dir
protected final String[] names
| Method Detail |
|---|
public static Path get(File file)
public static Path get(String s)
public Iterator<String> iterator()
iterator in interface Iterable<String>
public Path append(String name,
boolean dir)
protected abstract Path create(boolean dir,
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 boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||