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:
getFileSystem
in interfacePath
- See Also:
Path.getFileSystem()
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolute
in interfacePath
- See Also:
Path.isAbsolute()
-
getRoot
public Path getRoot()
- Specified by:
getRoot
in interfacePath
- See Also:
Path.getRoot()
-
getFileName
public Path getFileName()
- Specified by:
getFileName
in interfacePath
- See Also:
Path.getFileName()
-
getParent
public Path getParent()
- Specified by:
getParent
in interfacePath
- See Also:
Path.getParent()
-
getNameCount
public int getNameCount()
- Specified by:
getNameCount
in interfacePath
- See Also:
Path.getNameCount()
-
getName
public Path getName(int index)
- Specified by:
getName
in interfacePath
- See Also:
Path.getName(int)
-
subpath
public Path subpath(int beginIndex, int endIndex)
- Specified by:
subpath
in interfacePath
- See Also:
Path.subpath(int, int)
-
startsWith
public boolean startsWith(Path other)
- Specified by:
startsWith
in interfacePath
- See Also:
Path.startsWith(java.nio.file.Path)
-
startsWith
public boolean startsWith(String other)
- Specified by:
startsWith
in interfacePath
- See Also:
Path.startsWith(java.lang.String)
-
endsWith
public boolean endsWith(Path other)
- Specified by:
endsWith
in interfacePath
- See Also:
Path.endsWith(java.nio.file.Path)
-
endsWith
public boolean endsWith(String other)
- Specified by:
endsWith
in interfacePath
- See Also:
Path.endsWith(java.lang.String)
-
normalize
public Path normalize()
- Specified by:
normalize
in interfacePath
- See Also:
Path.normalize()
-
resolve
public Path resolve(Path other)
- Specified by:
resolve
in interfacePath
- See Also:
Path.resolve(java.nio.file.Path)
-
resolve
public Path resolve(String other)
- Specified by:
resolve
in interfacePath
- See Also:
Path.resolve(java.lang.String)
-
resolveSibling
public Path resolveSibling(Path other)
- Specified by:
resolveSibling
in interfacePath
- See Also:
Path.resolveSibling(java.nio.file.Path)
-
resolveSibling
public Path resolveSibling(String other)
- Specified by:
resolveSibling
in interfacePath
- See Also:
Path.resolveSibling(java.lang.String)
-
relativize
public Path relativize(Path other)
- Specified by:
relativize
in interfacePath
- See Also:
Path.relativize(java.nio.file.Path)
-
toUri
public URI toUri()
- Specified by:
toUri
in interfacePath
- See Also:
Path.toUri()
-
toAbsolutePath
public Path toAbsolutePath()
Resolves relative paths against the root directory, normalizing as well.- Specified by:
toAbsolutePath
in interfacePath
- See Also:
Path.toAbsolutePath()
-
toRealPath
public Path toRealPath(LinkOption... options) throws IOException
- Specified by:
toRealPath
in interfacePath
- Throws:
IOException
- See Also:
Path.toRealPath(java.nio.file.LinkOption[])
-
toFile
public File toFile()
- Specified by:
toFile
in interfacePath
- See Also:
Path.toFile()
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
- Specified by:
register
in interfacePath
- Specified by:
register
in 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:
register
in interfacePath
- Specified by:
register
in 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:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
- See Also:
Path.compareTo(java.nio.file.Path)
-
toString
public String toString()
- Specified by:
toString
in interfacePath
- Overrides:
toString
in classObject
- See Also:
Path.toString()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacePath
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
-