public class ShrinkWrapPath extends Object implements Path
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Path other) |
boolean |
endsWith(Path other) |
boolean |
endsWith(String other) |
boolean |
equals(Object obj) |
Path |
getFileName() |
FileSystem |
getFileSystem() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
Path |
getRoot() |
int |
hashCode() |
boolean |
isAbsolute() |
Iterator<Path> |
iterator() |
Path |
normalize() |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>... events) |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... modifiers) |
Path |
relativize(Path other) |
Path |
resolve(Path other) |
Path |
resolve(String other) |
Path |
resolveSibling(Path other) |
Path |
resolveSibling(String other) |
boolean |
startsWith(Path other) |
boolean |
startsWith(String other) |
Path |
subpath(int beginIndex,
int endIndex) |
Path |
toAbsolutePath()
Resolves relative paths against the root directory, normalizing as well.
|
File |
toFile() |
Path |
toRealPath(LinkOption... options) |
String |
toString() |
URI |
toUri() |
public FileSystem getFileSystem()
getFileSystem
in interface Path
Path.getFileSystem()
public boolean isAbsolute()
isAbsolute
in interface Path
Path.isAbsolute()
public Path getRoot()
getRoot
in interface Path
Path.getRoot()
public Path getFileName()
getFileName
in interface Path
Path.getFileName()
public Path getParent()
getParent
in interface Path
Path.getParent()
public int getNameCount()
getNameCount
in interface Path
Path.getNameCount()
public Path getName(int index)
getName
in interface Path
Path.getName(int)
public Path subpath(int beginIndex, int endIndex)
subpath
in interface Path
Path.subpath(int, int)
public boolean startsWith(Path other)
startsWith
in interface Path
Path.startsWith(java.nio.file.Path)
public boolean startsWith(String other)
startsWith
in interface Path
Path.startsWith(java.lang.String)
public boolean endsWith(Path other)
endsWith
in interface Path
Path.endsWith(java.nio.file.Path)
public boolean endsWith(String other)
endsWith
in interface Path
Path.endsWith(java.lang.String)
public Path normalize()
normalize
in interface Path
Path.normalize()
public Path resolve(Path other)
resolve
in interface Path
Path.resolve(java.nio.file.Path)
public Path resolve(String other)
resolve
in interface Path
Path.resolve(java.lang.String)
public Path resolveSibling(Path other)
resolveSibling
in interface Path
Path.resolveSibling(java.nio.file.Path)
public Path resolveSibling(String other)
resolveSibling
in interface Path
Path.resolveSibling(java.lang.String)
public Path relativize(Path other)
relativize
in interface Path
Path.relativize(java.nio.file.Path)
public URI toUri()
toUri
in interface Path
Path.toUri()
public Path toAbsolutePath()
toAbsolutePath
in interface Path
Path.toAbsolutePath()
public Path toRealPath(LinkOption... options) throws IOException
toRealPath
in interface Path
IOException
Path.toRealPath(java.nio.file.LinkOption[])
public File toFile()
toFile
in interface Path
Path.toFile()
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
register
in interface Path
register
in interface Watchable
IOException
Path.register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind<?>[],
java.nio.file.WatchEvent.Modifier[])
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
register
in interface Path
register
in interface Watchable
IOException
Path.register(java.nio.file.WatchService, java.nio.file.WatchEvent.Kind<?>[])
public int compareTo(Path other)
compareTo
in interface Comparable<Path>
compareTo
in interface Path
Path.compareTo(java.nio.file.Path)
public String toString()
toString
in interface Path
toString
in class Object
Path.toString()
public int hashCode()
hashCode
in interface Path
hashCode
in class Object
Object.hashCode()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.