Package org.apache.groovy.nio.runtime
Class WritablePath
- java.lang.Object
- 
- org.apache.groovy.nio.runtime.WritablePath
 
- 
- 
Constructor SummaryConstructors Constructor Description WritablePath(Path delegate)WritablePath(Path delegate, String encoding)
 - 
Method Summary- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
writeTopublic Writer writeTo(Writer out) throws IOException Description copied from interface:WritableWrites this object to the given writer.This 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.) - Specified by:
- writeToin interface- Writable
- Parameters:
- out- the Writer to which this Writable should output its data.
- Returns:
- the Writer that was passed
- Throws:
- IOException- if an error occurred while outputting data to the writer
 
 - 
getFileSystempublic FileSystem getFileSystem() - Specified by:
- getFileSystemin interface- Path
 
 - 
isAbsolutepublic boolean isAbsolute() - Specified by:
- isAbsolutein interface- Path
 
 - 
getFileNamepublic Path getFileName() - Specified by:
- getFileNamein interface- Path
 
 - 
getNameCountpublic int getNameCount() - Specified by:
- getNameCountin interface- Path
 
 - 
startsWithpublic boolean startsWith(Path other) - Specified by:
- startsWithin interface- Path
 
 - 
startsWithpublic boolean startsWith(String other) - Specified by:
- startsWithin interface- Path
 
 - 
resolveSiblingpublic Path resolveSibling(Path other) - Specified by:
- resolveSiblingin interface- Path
 
 - 
resolveSiblingpublic Path resolveSibling(String other) - Specified by:
- resolveSiblingin interface- Path
 
 - 
relativizepublic Path relativize(Path other) - Specified by:
- relativizein interface- Path
 
 - 
toAbsolutePathpublic Path toAbsolutePath() - Specified by:
- toAbsolutePathin interface- Path
 
 - 
toRealPathpublic Path toRealPath(LinkOption... options) throws IOException - Specified by:
- toRealPathin interface- Path
- Throws:
- IOException
 
 - 
registerpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
- registerin interface- Path
- Specified by:
- registerin interface- Watchable
- Throws:
- IOException
 
 - 
registerpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException - Specified by:
- registerin interface- Path
- Specified by:
- registerin interface- Watchable
- Throws:
- IOException
 
 - 
compareTopublic int compareTo(Path other) - Specified by:
- compareToin interface- Comparable<Path>
- Specified by:
- compareToin interface- Path
 
 - 
equalspublic boolean equals(Object other) 
 - 
hashCodepublic int hashCode() 
 
- 
 
-