Package org.apache.groovy.nio.runtime
Class WritablePath
- java.lang.Object
-
- org.apache.groovy.nio.runtime.WritablePath
-
-
Constructor Summary
Constructors Constructor Description WritablePath(Path delegate)
WritablePath(Path delegate, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Path other)
boolean
endsWith(String other)
boolean
endsWith(Path other)
boolean
equals(Object other)
Path
getFileName()
FileSystem
getFileSystem()
Path
getName(int index)
int
getNameCount()
Path
getParent()
Path
getRoot()
int
hashCode()
boolean
isAbsolute()
Iterator<Path>
iterator()
Path
normalize()
WatchKey
register(WatchService watcher, WatchEvent.Kind<?>... events)
WatchKey
register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)
Path
relativize(Path other)
Path
resolve(String other)
Path
resolve(Path other)
Path
resolveSibling(String other)
Path
resolveSibling(Path other)
boolean
startsWith(String other)
boolean
startsWith(Path other)
Path
subpath(int beginIndex, int endIndex)
Path
toAbsolutePath()
File
toFile()
Path
toRealPath(LinkOption... options)
String
toString()
URI
toUri()
Writer
writeTo(Writer out)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
writeTo
public Writer writeTo(Writer out) throws IOException
- Specified by:
writeTo
in interfacegroovy.lang.Writable
- Throws:
IOException
-
getFileSystem
public FileSystem getFileSystem()
- Specified by:
getFileSystem
in interfacePath
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolute
in interfacePath
-
getFileName
public Path getFileName()
- Specified by:
getFileName
in interfacePath
-
getNameCount
public int getNameCount()
- Specified by:
getNameCount
in interfacePath
-
startsWith
public boolean startsWith(Path other)
- Specified by:
startsWith
in interfacePath
-
startsWith
public boolean startsWith(String other)
- Specified by:
startsWith
in interfacePath
-
resolveSibling
public Path resolveSibling(Path other)
- Specified by:
resolveSibling
in interfacePath
-
resolveSibling
public Path resolveSibling(String other)
- Specified by:
resolveSibling
in interfacePath
-
relativize
public Path relativize(Path other)
- Specified by:
relativize
in interfacePath
-
toAbsolutePath
public Path toAbsolutePath()
- Specified by:
toAbsolutePath
in interfacePath
-
toRealPath
public Path toRealPath(LinkOption... options) throws IOException
- 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
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
- Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
compareTo
public int compareTo(Path other)
- Specified by:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
-