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 intcompareTo(Path other)booleanendsWith(String other)booleanendsWith(Path other)booleanequals(Object other)PathgetFileName()FileSystemgetFileSystem()PathgetName(int index)intgetNameCount()PathgetParent()PathgetRoot()inthashCode()booleanisAbsolute()Iterator<Path>iterator()Pathnormalize()WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>... events)WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)Pathrelativize(Path other)Pathresolve(String other)Pathresolve(Path other)PathresolveSibling(String other)PathresolveSibling(Path other)booleanstartsWith(String other)booleanstartsWith(Path other)Pathsubpath(int beginIndex, int endIndex)PathtoAbsolutePath()FiletoFile()PathtoRealPath(LinkOption... options)StringtoString()URItoUri()WriterwriteTo(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:
writeToin interfacegroovy.lang.Writable- Throws:
IOException
-
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
-
startsWith
public boolean startsWith(String other)
- Specified by:
startsWithin interfacePath
-
resolveSibling
public Path resolveSibling(Path other)
- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
public Path resolveSibling(String other)
- Specified by:
resolveSiblingin 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) throws IOException
- 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
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
compareTo
public int compareTo(Path other)
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
-