|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.cotta.TEntry
public abstract class TEntry
Entry instance that represents either a file or a directory.
| Field Summary | |
|---|---|
protected TPath |
path
|
| Constructor Summary | |
|---|---|
TEntry(FileSystem fileSystem,
TPath path)
Deprecated. use the other constructor for default encoding support through TFactory |
|
TEntry(TFileFactory factory,
TPath path)
|
|
| Method Summary | |
|---|---|
int |
compareTo(TEntry that)
|
boolean |
equals(java.lang.Object o)
|
abstract boolean |
exists()
|
TFileFactory |
factory()
|
protected FileSystem |
filesystem()
|
int |
hashCode()
|
boolean |
isChildOf(TDirectory directory)
|
java.lang.String |
name()
|
TDirectory |
parent()
|
java.lang.String |
path()
Ssystem specific path string For example, on physical system the path separator will be OS specific |
TPath |
pathFrom(TDirectory directory)
|
java.lang.String |
toCanonicalPath()
|
java.io.File |
toJavaFile()
Converts the instance to java.io.File. |
TPath |
toPath()
|
java.lang.String |
toPathString()
Alias of path() which returns system specific path string For example, on physical system the path separator will be OS specific |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TPath path
| Constructor Detail |
|---|
public TEntry(FileSystem fileSystem,
TPath path)
fileSystem - file system backing the entrypath - path for the entryTEntry(TFileFactory, TPath)
public TEntry(TFileFactory factory,
TPath path)
| Method Detail |
|---|
public boolean isChildOf(TDirectory directory)
public TPath pathFrom(TDirectory directory)
public java.lang.String name()
public TDirectory parent()
public java.lang.String toCanonicalPath()
public TFileFactory factory()
protected FileSystem filesystem()
public TPath toPath()
public java.lang.String toPathString()
path()public java.io.File toJavaFile()
java.lang.RuntimeException - if the underlying file system is not a normal file system.public java.lang.String path()
toPathString()public java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean exists()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(TEntry that)
compareTo in interface java.lang.Comparable<TEntry>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||