java.lang.Object
convex.dlfs.DLPath
A DLFS Path
Path components are Strings, separated by "/"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final intprotected final DLFileSystemprotected final AString[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDLPath(DLFileSystem fs) protectedDLPath(DLFileSystem fs, AString[] names, boolean absolute) -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanbooleanbooleanbooleangetCVMName(int i) protected String[]getName(int index) intgetRoot()booleanregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(DLPath other) relativize(Path other) booleanstartsWith(DLPath other) booleanstartsWith(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, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin 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:
startsWithin interfacePath
-
startsWith
-
endsWith
-
endWith
-
normalize
-
resolve
-
resolve
-
relativize
- Specified by:
relativizein interfacePath
-
relativize
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
compareTo
-
toString
-
getJavaNames
-
equals
-
equals
-
getCVMName
-
getCVMFileName
-