Class ShrinkWrapPath
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.nio.file.ShrinkWrapPath
-
public class ShrinkWrapPath extends Object implements Path
- Author:
- Andrew Lee Rubinger
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getFileSystem
public FileSystem getFileSystem()
- Specified by:
getFileSystemin interfacePath- See Also:
Path.getFileSystem()
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfacePath- See Also:
Path.isAbsolute()
-
getRoot
public Path getRoot()
- Specified by:
getRootin interfacePath- See Also:
Path.getRoot()
-
getFileName
public Path getFileName()
- Specified by:
getFileNamein interfacePath- See Also:
Path.getFileName()
-
getParent
public Path getParent()
- Specified by:
getParentin interfacePath- See Also:
Path.getParent()
-
getNameCount
public int getNameCount()
- Specified by:
getNameCountin interfacePath- See Also:
Path.getNameCount()
-
getName
public Path getName(int index)
- Specified by:
getNamein interfacePath- See Also:
Path.getName(int)
-
subpath
public Path subpath(int beginIndex, int endIndex)
- Specified by:
subpathin interfacePath- See Also:
Path.subpath(int, int)
-
startsWith
public boolean startsWith(Path other)
- Specified by:
startsWithin interfacePath- See Also:
Path.startsWith(java.nio.file.Path)
-
startsWith
public boolean startsWith(String other)
- Specified by:
startsWithin interfacePath- See Also:
Path.startsWith(java.lang.String)
-
endsWith
public boolean endsWith(Path other)
- Specified by:
endsWithin interfacePath- See Also:
Path.endsWith(java.nio.file.Path)
-
endsWith
public boolean endsWith(String other)
- Specified by:
endsWithin interfacePath- See Also:
Path.endsWith(java.lang.String)
-
normalize
public Path normalize()
- Specified by:
normalizein interfacePath- See Also:
Path.normalize()
-
resolve
public Path resolve(Path other)
- Specified by:
resolvein interfacePath- See Also:
Path.resolve(java.nio.file.Path)
-
resolve
public Path resolve(String other)
- Specified by:
resolvein interfacePath- See Also:
Path.resolve(java.lang.String)
-
resolveSibling
public Path resolveSibling(Path other)
- Specified by:
resolveSiblingin interfacePath- See Also:
Path.resolveSibling(java.nio.file.Path)
-
resolveSibling
public Path resolveSibling(String other)
- Specified by:
resolveSiblingin interfacePath- See Also:
Path.resolveSibling(java.lang.String)
-
relativize
public Path relativize(Path other)
- Specified by:
relativizein interfacePath- See Also:
Path.relativize(java.nio.file.Path)
-
toUri
public URI toUri()
- Specified by:
toUriin interfacePath- See Also:
Path.toUri()
-
toAbsolutePath
public Path toAbsolutePath()
Resolves relative paths against the root directory, normalizing as well.- Specified by:
toAbsolutePathin interfacePath- See Also:
Path.toAbsolutePath()
-
toRealPath
public Path toRealPath(LinkOption... options) throws IOException
- Specified by:
toRealPathin interfacePath- Throws:
IOException- See Also:
Path.toRealPath(java.nio.file.LinkOption[])
-
toFile
public File toFile()
- Specified by:
toFilein interfacePath- See Also:
Path.toFile()
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException- See Also:
java.nio.file.Path#register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind>[], java.nio.file.WatchEvent.Modifier[])
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException- See Also:
java.nio.file.Path#register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind>[])
-
compareTo
public int compareTo(Path other)
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath- See Also:
Path.compareTo(java.nio.file.Path)
-
toString
public String toString()
- Specified by:
toStringin interfacePath- Overrides:
toStringin classObject- See Also:
Path.toString()
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacePath- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
-