|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
. |
private static String[] |
EMPTY_STRING
. |
protected String[] |
names
. |
static Path.Absolute |
ROOT
. |
private String |
value
. |
Constructor Summary | |
---|---|
private |
Path(boolean dir,
String[] names)
|
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)
|
private static String[] |
parseNames(String s,
int prev,
int end,
int count)
|
private static String[] |
path(File file,
int size)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final String[] EMPTY_STRING
public static final Path.Absolute ROOT
public static final Path.Relative EMPTY
protected final boolean dir
protected final String[] names
private String value
Constructor Detail |
---|
private Path(boolean dir, String[] names)
Method Detail |
---|
private static String[] path(File file, int size)
public static Path get(File file)
public static Path get(String s)
private static String[] parseNames(String s, int prev, int end, int count)
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
IndexOutOfBoundsException
public boolean isChildOf(Path parent)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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 |