Package org.codehaus.groovy.runtime
Class WritablePath
java.lang.Object
org.codehaus.groovy.runtime.WritablePath
@Deprecated public class WritablePath extends Object implements Path, Writable
Deprecated.
A Writable Path.
-
Constructor Summary
Constructors Constructor Description WritablePath(Path delegate)Deprecated.WritablePath(Path delegate, String encoding)Deprecated. -
Method Summary
Modifier and Type Method Description intcompareTo(Path other)Deprecated.booleanendsWith(String other)Deprecated.booleanendsWith(Path other)Deprecated.booleanequals(Object other)Deprecated.PathgetFileName()Deprecated.FileSystemgetFileSystem()Deprecated.PathgetName(int index)Deprecated.intgetNameCount()Deprecated.PathgetParent()Deprecated.PathgetRoot()Deprecated.inthashCode()Deprecated.booleanisAbsolute()Deprecated.Iterator<Path>iterator()Deprecated.Pathnormalize()Deprecated.WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>... events)Deprecated.WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)Deprecated.Pathrelativize(Path other)Deprecated.Pathresolve(String other)Deprecated.Pathresolve(Path other)Deprecated.PathresolveSibling(String other)Deprecated.PathresolveSibling(Path other)Deprecated.booleanstartsWith(String other)Deprecated.booleanstartsWith(Path other)Deprecated.Pathsubpath(int beginIndex, int endIndex)Deprecated.PathtoAbsolutePath()Deprecated.FiletoFile()Deprecated.PathtoRealPath(LinkOption... options)Deprecated.StringtoString()Deprecated.URItoUri()Deprecated.WriterwriteTo(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
Deprecated. -
WritablePath
Deprecated.
-
-
Method Details
-
writeTo
Deprecated.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 interfaceWritable- 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
-
getFileSystem
Deprecated.- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()Deprecated.- Specified by:
isAbsolutein interfacePath
-
getRoot
Deprecated. -
getFileName
Deprecated.- Specified by:
getFileNamein interfacePath
-
getParent
Deprecated. -
getNameCount
public int getNameCount()Deprecated.- Specified by:
getNameCountin interfacePath
-
getName
Deprecated. -
subpath
Deprecated. -
startsWith
Deprecated.- Specified by:
startsWithin interfacePath
-
startsWith
Deprecated.- Specified by:
startsWithin interfacePath
-
endsWith
Deprecated. -
endsWith
Deprecated. -
normalize
Deprecated. -
resolve
Deprecated. -
resolve
Deprecated. -
resolveSibling
Deprecated.- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
Deprecated.- Specified by:
resolveSiblingin interfacePath
-
relativize
Deprecated.- Specified by:
relativizein interfacePath
-
toUri
Deprecated. -
toAbsolutePath
Deprecated.- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
Deprecated.- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
toFile
Deprecated. -
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOExceptionDeprecated.- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
register
Deprecated.- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
iterator
Deprecated. -
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-