public class WritablePath extends java.lang.Object implements java.nio.file.Path, Writable
| Constructor and Description |
|---|
WritablePath(java.nio.file.Path delegate) |
WritablePath(java.nio.file.Path delegate,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.nio.file.Path other) |
boolean |
endsWith(java.nio.file.Path other) |
boolean |
endsWith(java.lang.String other) |
boolean |
equals(java.lang.Object other) |
java.nio.file.Path |
getFileName() |
java.nio.file.FileSystem |
getFileSystem() |
java.nio.file.Path |
getName(int index) |
int |
getNameCount() |
java.nio.file.Path |
getParent() |
java.nio.file.Path |
getRoot() |
int |
hashCode() |
boolean |
isAbsolute() |
java.util.Iterator<java.nio.file.Path> |
iterator() |
java.nio.file.Path |
normalize() |
java.nio.file.WatchKey |
register(java.nio.file.WatchService watcher,
java.nio.file.WatchEvent.Kind<?>... events) |
java.nio.file.WatchKey |
register(java.nio.file.WatchService watcher,
java.nio.file.WatchEvent.Kind<?>[] events,
java.nio.file.WatchEvent.Modifier... modifiers) |
java.nio.file.Path |
relativize(java.nio.file.Path other) |
java.nio.file.Path |
resolve(java.nio.file.Path other) |
java.nio.file.Path |
resolve(java.lang.String other) |
java.nio.file.Path |
resolveSibling(java.nio.file.Path other) |
java.nio.file.Path |
resolveSibling(java.lang.String other) |
boolean |
startsWith(java.nio.file.Path other) |
boolean |
startsWith(java.lang.String other) |
java.nio.file.Path |
subpath(int beginIndex,
int endIndex) |
java.nio.file.Path |
toAbsolutePath() |
java.io.File |
toFile() |
java.nio.file.Path |
toRealPath(java.nio.file.LinkOption... options) |
java.lang.String |
toString() |
java.net.URI |
toUri() |
java.io.Writer |
writeTo(java.io.Writer out)
Writes this object to the given writer.
|
public WritablePath(java.nio.file.Path delegate)
public WritablePath(java.nio.file.Path delegate,
java.lang.String encoding)
public java.io.Writer writeTo(java.io.Writer out)
throws java.io.IOException
WritableThis is used to defer content creation until the point when it is streamed to the output destination. Oftentimes, content will be defined but not necessarily created (as is may be the case with a Closure definition.) In that case, the output is then 'deferred' to the point when it is serialized to the writer. This class may be used whenever an object should be responsible for creating its own textual representation, but creating the entire output as a single String would be inefficient (such as outputting a multi-gigabyte XML document.)
public java.nio.file.FileSystem getFileSystem()
getFileSystem in interface java.nio.file.Pathpublic boolean isAbsolute()
isAbsolute in interface java.nio.file.Pathpublic java.nio.file.Path getRoot()
getRoot in interface java.nio.file.Pathpublic java.nio.file.Path getFileName()
getFileName in interface java.nio.file.Pathpublic java.nio.file.Path getParent()
getParent in interface java.nio.file.Pathpublic int getNameCount()
getNameCount in interface java.nio.file.Pathpublic java.nio.file.Path getName(int index)
getName in interface java.nio.file.Pathpublic java.nio.file.Path subpath(int beginIndex,
int endIndex)
subpath in interface java.nio.file.Pathpublic boolean startsWith(java.nio.file.Path other)
startsWith in interface java.nio.file.Pathpublic boolean startsWith(java.lang.String other)
startsWith in interface java.nio.file.Pathpublic boolean endsWith(java.nio.file.Path other)
endsWith in interface java.nio.file.Pathpublic boolean endsWith(java.lang.String other)
endsWith in interface java.nio.file.Pathpublic java.nio.file.Path normalize()
normalize in interface java.nio.file.Pathpublic java.nio.file.Path resolve(java.nio.file.Path other)
resolve in interface java.nio.file.Pathpublic java.nio.file.Path resolve(java.lang.String other)
resolve in interface java.nio.file.Pathpublic java.nio.file.Path resolveSibling(java.nio.file.Path other)
resolveSibling in interface java.nio.file.Pathpublic java.nio.file.Path resolveSibling(java.lang.String other)
resolveSibling in interface java.nio.file.Pathpublic java.nio.file.Path relativize(java.nio.file.Path other)
relativize in interface java.nio.file.Pathpublic java.net.URI toUri()
toUri in interface java.nio.file.Pathpublic java.nio.file.Path toAbsolutePath()
toAbsolutePath in interface java.nio.file.Pathpublic java.nio.file.Path toRealPath(java.nio.file.LinkOption... options)
throws java.io.IOException
toRealPath in interface java.nio.file.Pathjava.io.IOExceptionpublic java.io.File toFile()
toFile in interface java.nio.file.Pathpublic java.nio.file.WatchKey register(java.nio.file.WatchService watcher,
java.nio.file.WatchEvent.Kind<?>[] events,
java.nio.file.WatchEvent.Modifier... modifiers)
throws java.io.IOException
register in interface java.nio.file.Pathregister in interface java.nio.file.Watchablejava.io.IOExceptionpublic java.nio.file.WatchKey register(java.nio.file.WatchService watcher,
java.nio.file.WatchEvent.Kind<?>... events)
throws java.io.IOException
register in interface java.nio.file.Pathregister in interface java.nio.file.Watchablejava.io.IOExceptionpublic java.util.Iterator<java.nio.file.Path> iterator()
iterator in interface java.lang.Iterable<java.nio.file.Path>iterator in interface java.nio.file.Pathpublic int compareTo(java.nio.file.Path other)
compareTo in interface java.lang.Comparable<java.nio.file.Path>compareTo in interface java.nio.file.Pathpublic boolean equals(java.lang.Object other)
equals in interface java.nio.file.Pathequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.nio.file.PathhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.nio.file.PathtoString in class java.lang.Object