Package org.codehaus.groovy.runtime
Class WritablePath
java.lang.Object
org.codehaus.groovy.runtime.WritablePath
- All Implemented Interfaces:
- Writable,- java.lang.Comparable<java.nio.file.Path>,- java.lang.Iterable<java.nio.file.Path>,- java.nio.file.Path,- java.nio.file.Watchable
@Deprecated public class WritablePath extends java.lang.Object implements java.nio.file.Path, Writable
Deprecated.
A Writable Path.
- 
Constructor SummaryConstructors Constructor Description WritablePath(java.nio.file.Path delegate)Deprecated.WritablePath(java.nio.file.Path delegate, java.lang.String encoding)Deprecated.
- 
Method SummaryModifier and Type Method Description intcompareTo(java.nio.file.Path other)Deprecated.booleanendsWith(java.lang.String other)Deprecated.booleanendsWith(java.nio.file.Path other)Deprecated.booleanequals(java.lang.Object other)Deprecated.java.nio.file.PathgetFileName()Deprecated.java.nio.file.FileSystemgetFileSystem()Deprecated.java.nio.file.PathgetName(int index)Deprecated.intgetNameCount()Deprecated.java.nio.file.PathgetParent()Deprecated.java.nio.file.PathgetRoot()Deprecated.inthashCode()Deprecated.booleanisAbsolute()Deprecated.java.util.Iterator<java.nio.file.Path>iterator()Deprecated.java.nio.file.Pathnormalize()Deprecated.java.nio.file.WatchKeyregister(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>... events)Deprecated.java.nio.file.WatchKeyregister(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>[] events, java.nio.file.WatchEvent.Modifier... modifiers)Deprecated.java.nio.file.Pathrelativize(java.nio.file.Path other)Deprecated.java.nio.file.Pathresolve(java.lang.String other)Deprecated.java.nio.file.Pathresolve(java.nio.file.Path other)Deprecated.java.nio.file.PathresolveSibling(java.lang.String other)Deprecated.java.nio.file.PathresolveSibling(java.nio.file.Path other)Deprecated.booleanstartsWith(java.lang.String other)Deprecated.booleanstartsWith(java.nio.file.Path other)Deprecated.java.nio.file.Pathsubpath(int beginIndex, int endIndex)Deprecated.java.nio.file.PathtoAbsolutePath()Deprecated.java.io.FiletoFile()Deprecated.java.nio.file.PathtoRealPath(java.nio.file.LinkOption... options)Deprecated.java.lang.StringtoString()Deprecated.java.net.URItoUri()Deprecated.java.io.WriterwriteTo(java.io.Writer out)Deprecated.Writes this object to the given writer.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
WritablePathpublic WritablePath(java.nio.file.Path delegate)Deprecated.
- 
WritablePathpublic WritablePath(java.nio.file.Path delegate, java.lang.String encoding)Deprecated.
 
- 
- 
Method Details- 
writeTopublic java.io.Writer writeTo(java.io.Writer out) throws java.io.IOExceptionDeprecated.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.) 
- 
getFileSystempublic java.nio.file.FileSystem getFileSystem()Deprecated.- Specified by:
- getFileSystemin interface- java.nio.file.Path
 
- 
isAbsolutepublic boolean isAbsolute()Deprecated.- Specified by:
- isAbsolutein interface- java.nio.file.Path
 
- 
getRootpublic java.nio.file.Path getRoot()Deprecated.- Specified by:
- getRootin interface- java.nio.file.Path
 
- 
getFileNamepublic java.nio.file.Path getFileName()Deprecated.- Specified by:
- getFileNamein interface- java.nio.file.Path
 
- 
getParentpublic java.nio.file.Path getParent()Deprecated.- Specified by:
- getParentin interface- java.nio.file.Path
 
- 
getNameCountpublic int getNameCount()Deprecated.- Specified by:
- getNameCountin interface- java.nio.file.Path
 
- 
getNamepublic java.nio.file.Path getName(int index)Deprecated.- Specified by:
- getNamein interface- java.nio.file.Path
 
- 
subpathpublic java.nio.file.Path subpath(int beginIndex, int endIndex)Deprecated.- Specified by:
- subpathin interface- java.nio.file.Path
 
- 
startsWithpublic boolean startsWith(java.nio.file.Path other)Deprecated.- Specified by:
- startsWithin interface- java.nio.file.Path
 
- 
startsWithpublic boolean startsWith(java.lang.String other)Deprecated.- Specified by:
- startsWithin interface- java.nio.file.Path
 
- 
endsWithpublic boolean endsWith(java.nio.file.Path other)Deprecated.- Specified by:
- endsWithin interface- java.nio.file.Path
 
- 
endsWithpublic boolean endsWith(java.lang.String other)Deprecated.- Specified by:
- endsWithin interface- java.nio.file.Path
 
- 
normalizepublic java.nio.file.Path normalize()Deprecated.- Specified by:
- normalizein interface- java.nio.file.Path
 
- 
resolvepublic java.nio.file.Path resolve(java.nio.file.Path other)Deprecated.- Specified by:
- resolvein interface- java.nio.file.Path
 
- 
resolvepublic java.nio.file.Path resolve(java.lang.String other)Deprecated.- Specified by:
- resolvein interface- java.nio.file.Path
 
- 
resolveSiblingpublic java.nio.file.Path resolveSibling(java.nio.file.Path other)Deprecated.- Specified by:
- resolveSiblingin interface- java.nio.file.Path
 
- 
resolveSiblingpublic java.nio.file.Path resolveSibling(java.lang.String other)Deprecated.- Specified by:
- resolveSiblingin interface- java.nio.file.Path
 
- 
relativizepublic java.nio.file.Path relativize(java.nio.file.Path other)Deprecated.- Specified by:
- relativizein interface- java.nio.file.Path
 
- 
toUripublic java.net.URI toUri()Deprecated.- Specified by:
- toUriin interface- java.nio.file.Path
 
- 
toAbsolutePathpublic java.nio.file.Path toAbsolutePath()Deprecated.- Specified by:
- toAbsolutePathin interface- java.nio.file.Path
 
- 
toRealPathpublic java.nio.file.Path toRealPath(java.nio.file.LinkOption... options) throws java.io.IOExceptionDeprecated.- Specified by:
- toRealPathin interface- java.nio.file.Path
- Throws:
- java.io.IOException
 
- 
toFilepublic java.io.File toFile()Deprecated.- Specified by:
- toFilein interface- java.nio.file.Path
 
- 
registerpublic 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.IOExceptionDeprecated.- Specified by:
- registerin interface- java.nio.file.Path
- Specified by:
- registerin interface- java.nio.file.Watchable
- Throws:
- java.io.IOException
 
- 
registerpublic java.nio.file.WatchKey register(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>... events) throws java.io.IOExceptionDeprecated.- Specified by:
- registerin interface- java.nio.file.Path
- Specified by:
- registerin interface- java.nio.file.Watchable
- Throws:
- java.io.IOException
 
- 
iteratorpublic java.util.Iterator<java.nio.file.Path> iterator()Deprecated.- Specified by:
- iteratorin interface- java.lang.Iterable<java.nio.file.Path>
- Specified by:
- iteratorin interface- java.nio.file.Path
 
- 
compareTopublic int compareTo(java.nio.file.Path other)Deprecated.- Specified by:
- compareToin interface- java.lang.Comparable<java.nio.file.Path>
- Specified by:
- compareToin interface- java.nio.file.Path
 
- 
equalspublic boolean equals(java.lang.Object other)Deprecated.- Specified by:
- equalsin interface- java.nio.file.Path
- Overrides:
- equalsin class- java.lang.Object
 
- 
hashCodepublic int hashCode()Deprecated.- Specified by:
- hashCodein interface- java.nio.file.Path
- Overrides:
- hashCodein class- java.lang.Object
 
- 
toStringpublic java.lang.String toString()Deprecated.- Specified by:
- toStringin interface- java.nio.file.Path
- Overrides:
- toStringin class- java.lang.Object
 
 
-