Package org.smallmind.file.jailed
Class JailedPath
- java.lang.Object
-
- org.smallmind.file.jailed.JailedPath
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classJailedPath.Segment
-
Field Summary
Fields Modifier and Type Field Description protected static charSEPARATOR
-
Constructor Summary
Constructors Modifier Constructor Description JailedPath(JailedFileSystem jailedFileSystem, char... text)protectedJailedPath(JailedFileSystem jailedFileSystem, char[] text, boolean hasRoot, JailedPath.Segment... segments)JailedPath(JailedFileSystem jailedFileSystem, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Path other)booleanendsWith(Path other)PathgetFileName()FileSystemgetFileSystem()PathgetName(int index)intgetNameCount()PathgetParent()PathgetRoot()booleanisAbsolute()Pathnormalize()WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)Pathrelativize(Path other)Pathresolve(Path other)booleanstartsWith(Path other)Pathsubpath(int beginIndex, int endIndex)PathtoAbsolutePath()PathtoRealPath(LinkOption... options)StringtoString()URItoUri()-
Methods inherited from class java.lang.Object
clone, equals, 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, equals, hashCode, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
-
-
-
Field Detail
-
SEPARATOR
protected static final char SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JailedPath
protected JailedPath(JailedFileSystem jailedFileSystem, char[] text, boolean hasRoot, JailedPath.Segment... segments)
-
JailedPath
public JailedPath(JailedFileSystem jailedFileSystem, char... text)
-
JailedPath
public JailedPath(JailedFileSystem jailedFileSystem, String text)
-
-
Method Detail
-
getFileSystem
public FileSystem getFileSystem()
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfacePath
-
getFileName
public Path getFileName()
- Specified by:
getFileNamein interfacePath
-
getNameCount
public int getNameCount()
- Specified by:
getNameCountin interfacePath
-
startsWith
public boolean startsWith(Path other)
- Specified by:
startsWithin interfacePath
-
relativize
public Path relativize(Path other)
- Specified by:
relativizein interfacePath
-
toAbsolutePath
public Path toAbsolutePath()
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
public Path toRealPath(LinkOption... options)
- Specified by:
toRealPathin interfacePath
-
compareTo
public int compareTo(Path other)
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)
-
-