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 Summary
Constructors Constructor Description WritablePath(java.nio.file.Path delegate)Deprecated.WritablePath(java.nio.file.Path delegate, java.lang.String encoding)Deprecated. -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
WritablePath
public WritablePath(java.nio.file.Path delegate)Deprecated. -
WritablePath
public WritablePath(java.nio.file.Path delegate, java.lang.String encoding)Deprecated.
-
-
Method Details
-
writeTo
public 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.)
-
getFileSystem
public java.nio.file.FileSystem getFileSystem()Deprecated.- Specified by:
getFileSystemin interfacejava.nio.file.Path
-
isAbsolute
public boolean isAbsolute()Deprecated.- Specified by:
isAbsolutein interfacejava.nio.file.Path
-
getRoot
public java.nio.file.Path getRoot()Deprecated.- Specified by:
getRootin interfacejava.nio.file.Path
-
getFileName
public java.nio.file.Path getFileName()Deprecated.- Specified by:
getFileNamein interfacejava.nio.file.Path
-
getParent
public java.nio.file.Path getParent()Deprecated.- Specified by:
getParentin interfacejava.nio.file.Path
-
getNameCount
public int getNameCount()Deprecated.- Specified by:
getNameCountin interfacejava.nio.file.Path
-
getName
public java.nio.file.Path getName(int index)Deprecated.- Specified by:
getNamein interfacejava.nio.file.Path
-
subpath
public java.nio.file.Path subpath(int beginIndex, int endIndex)Deprecated.- Specified by:
subpathin interfacejava.nio.file.Path
-
startsWith
public boolean startsWith(java.nio.file.Path other)Deprecated.- Specified by:
startsWithin interfacejava.nio.file.Path
-
startsWith
public boolean startsWith(java.lang.String other)Deprecated.- Specified by:
startsWithin interfacejava.nio.file.Path
-
endsWith
public boolean endsWith(java.nio.file.Path other)Deprecated.- Specified by:
endsWithin interfacejava.nio.file.Path
-
endsWith
public boolean endsWith(java.lang.String other)Deprecated.- Specified by:
endsWithin interfacejava.nio.file.Path
-
normalize
public java.nio.file.Path normalize()Deprecated.- Specified by:
normalizein interfacejava.nio.file.Path
-
resolve
public java.nio.file.Path resolve(java.nio.file.Path other)Deprecated.- Specified by:
resolvein interfacejava.nio.file.Path
-
resolve
public java.nio.file.Path resolve(java.lang.String other)Deprecated.- Specified by:
resolvein interfacejava.nio.file.Path
-
resolveSibling
public java.nio.file.Path resolveSibling(java.nio.file.Path other)Deprecated.- Specified by:
resolveSiblingin interfacejava.nio.file.Path
-
resolveSibling
public java.nio.file.Path resolveSibling(java.lang.String other)Deprecated.- Specified by:
resolveSiblingin interfacejava.nio.file.Path
-
relativize
public java.nio.file.Path relativize(java.nio.file.Path other)Deprecated.- Specified by:
relativizein interfacejava.nio.file.Path
-
toUri
public java.net.URI toUri()Deprecated.- Specified by:
toUriin interfacejava.nio.file.Path
-
toAbsolutePath
public java.nio.file.Path toAbsolutePath()Deprecated.- Specified by:
toAbsolutePathin interfacejava.nio.file.Path
-
toRealPath
public java.nio.file.Path toRealPath(java.nio.file.LinkOption... options) throws java.io.IOExceptionDeprecated.- Specified by:
toRealPathin interfacejava.nio.file.Path- Throws:
java.io.IOException
-
toFile
public java.io.File toFile()Deprecated.- Specified by:
toFilein interfacejava.nio.file.Path
-
register
public 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 interfacejava.nio.file.Path- Specified by:
registerin interfacejava.nio.file.Watchable- Throws:
java.io.IOException
-
register
public java.nio.file.WatchKey register(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>... events) throws java.io.IOExceptionDeprecated.- Specified by:
registerin interfacejava.nio.file.Path- Specified by:
registerin interfacejava.nio.file.Watchable- Throws:
java.io.IOException
-
iterator
public java.util.Iterator<java.nio.file.Path> iterator()Deprecated.- Specified by:
iteratorin interfacejava.lang.Iterable<java.nio.file.Path>- Specified by:
iteratorin interfacejava.nio.file.Path
-
compareTo
public int compareTo(java.nio.file.Path other)Deprecated.- Specified by:
compareToin interfacejava.lang.Comparable<java.nio.file.Path>- Specified by:
compareToin interfacejava.nio.file.Path
-
equals
public boolean equals(java.lang.Object other)Deprecated.- Specified by:
equalsin interfacejava.nio.file.Path- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCodein interfacejava.nio.file.Path- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()Deprecated.- Specified by:
toStringin interfacejava.nio.file.Path- Overrides:
toStringin classjava.lang.Object
-