java.lang.Object
convex.dlfs.DLPath
A DLFS Path
Path components are Strings, separated by "/"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final int
protected final DLFileSystem
protected final AString[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DLPath
(DLFileSystem fs) protected
DLPath
(DLFileSystem fs, AString[] names, boolean absolute) -
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
boolean
boolean
boolean
getCVMName
(int i) protected String[]
getName
(int index) int
getRoot()
boolean
register
(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize
(DLPath other) relativize
(Path other) boolean
startsWith
(DLPath other) boolean
startsWith
(Path other) subpath
(int beginIndex) Return a subpath starting from the given indexsubpath
(int beginIndex, int endIndex) toRealPath
(LinkOption... options) toString()
toUri()
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.nio.file.Path
endsWith, hashCode, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
Field Details
-
fileSystem
-
names
-
absolute
protected final boolean absolute -
count
protected final int count
-
-
Constructor Details
-
DLPath
-
DLPath
-
-
Method Details
-
getFileSystem
- Specified by:
getFileSystem
in interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolute
in interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileName
in interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCount
in interfacePath
-
getName
-
subpath
-
subpath
Return a subpath starting from the given index- Parameters:
beginIndex
- Starting index- Returns:
- Relative subpath in smae manner as
subpath(int, int)
-
startsWith
- Specified by:
startsWith
in interfacePath
-
startsWith
-
endsWith
-
endWith
-
normalize
-
resolve
-
resolve
-
relativize
- Specified by:
relativize
in interfacePath
-
relativize
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
-
toRealPath
- Specified by:
toRealPath
in interfacePath
- Throws:
IOException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
-
compareTo
-
toString
-
getJavaNames
-
equals
-
equals
-
getCVMName
-
getCVMFileName
-