| Constructor and Description |
|---|
WritablePath(Path delegate) |
WritablePath(Path delegate,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Path other) |
boolean |
endsWith(Path other) |
boolean |
endsWith(String 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(Path other) |
Path |
resolve(String other) |
Path |
resolveSibling(Path other) |
Path |
resolveSibling(String other) |
boolean |
startsWith(Path other) |
boolean |
startsWith(String other) |
Path |
subpath(int beginIndex,
int endIndex) |
Path |
toAbsolutePath() |
File |
toFile() |
Path |
toRealPath(LinkOption... options) |
String |
toString() |
URI |
toUri() |
Writer |
writeTo(Writer out)
Writes this object to the given writer.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic WritablePath(Path delegate)
public Writer writeTo(Writer out) throws 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.)
writeTo in interface Writableout - the Writer to which this Writable should output its data.IOException - if an error occurred while outputting data to the writerpublic FileSystem getFileSystem()
getFileSystem in interface Pathpublic boolean isAbsolute()
isAbsolute in interface Pathpublic Path getFileName()
getFileName in interface Pathpublic int getNameCount()
getNameCount in interface Pathpublic boolean startsWith(Path other)
startsWith in interface Pathpublic boolean startsWith(String other)
startsWith in interface Pathpublic Path resolveSibling(Path other)
resolveSibling in interface Pathpublic Path resolveSibling(String other)
resolveSibling in interface Pathpublic Path relativize(Path other)
relativize in interface Pathpublic Path toAbsolutePath()
toAbsolutePath in interface Pathpublic Path toRealPath(LinkOption... options) throws IOException
toRealPath in interface PathIOExceptionpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic int compareTo(Path other)
compareTo in interface Comparable<Path>compareTo in interface Pathpublic boolean equals(Object other)
public int hashCode()