Package org.smallmind.file.jailed
Class JailedPath
java.lang.Object
org.smallmind.file.jailed.JailedPath
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionJailedPath(JailedFileSystem jailedFileSystem, char... text) protectedJailedPath(JailedFileSystem jailedFileSystem, char[] text, boolean hasRoot, JailedPath.Segment... segments) JailedPath(JailedFileSystem jailedFileSystem, String text) -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetName(int index) intgetRoot()booleanregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) booleanstartsWith(Path other) subpath(int beginIndex, int endIndex) toRealPath(LinkOption... options) toString()toUri()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.nio.file.Path
endsWith, equals, hashCode, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
Field Details
-
SEPARATOR
protected static final char SEPARATOR- See Also:
-
-
Constructor Details
-
JailedPath
protected JailedPath(JailedFileSystem jailedFileSystem, char[] text, boolean hasRoot, JailedPath.Segment... segments) -
JailedPath
-
JailedPath
-
-
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
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
normalize
-
resolve
-
relativize
- Specified by:
relativizein interfacePath
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
toUri
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) -
toString
-