Constructor and Description |
---|
JGitFSPath(JGitFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Path path) |
boolean |
endsWith(Path other) |
boolean |
endsWith(String other) |
Path |
getFileName() |
FileSystem |
getFileSystem() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
Path |
getRoot() |
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() |
File |
toFile() |
Path |
toRealPath(LinkOption... options) |
URI |
toUri() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public JGitFSPath(JGitFileSystem fs)
public FileSystem getFileSystem()
getFileSystem
in interface Path
public boolean isAbsolute()
isAbsolute
in interface Path
public Path getFileName()
getFileName
in interface Path
public int getNameCount()
getNameCount
in interface Path
public Path getName(int index) throws IllegalArgumentException
getName
in interface Path
IllegalArgumentException
public Path subpath(int beginIndex, int endIndex) throws IllegalArgumentException
subpath
in interface Path
IllegalArgumentException
public boolean startsWith(Path other)
startsWith
in interface Path
public boolean startsWith(String other) throws InvalidPathException
startsWith
in interface Path
InvalidPathException
public boolean endsWith(String other) throws InvalidPathException
endsWith
in interface Path
InvalidPathException
public Path resolve(String other) throws InvalidPathException
resolve
in interface Path
InvalidPathException
public Path resolveSibling(Path other)
resolveSibling
in interface Path
public Path resolveSibling(String other) throws InvalidPathException
resolveSibling
in interface Path
InvalidPathException
public Path relativize(Path other) throws IllegalArgumentException
relativize
in interface Path
IllegalArgumentException
public URI toUri() throws IOException, SecurityException
toUri
in interface Path
IOException
SecurityException
public Path toAbsolutePath() throws IOException, SecurityException
toAbsolutePath
in interface Path
IOException
SecurityException
public Path toRealPath(LinkOption... options) throws IOException, SecurityException
toRealPath
in interface Path
IOException
SecurityException
public File toFile() throws UnsupportedOperationException
toFile
in interface Path
UnsupportedOperationException
public int compareTo(Path path)
compareTo
in interface Comparable<Path>
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws UnsupportedOperationException, IllegalArgumentException, ClosedWatchServiceException, IOException, SecurityException
register
in interface Watchable
UnsupportedOperationException
IllegalArgumentException
ClosedWatchServiceException
IOException
SecurityException
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws UnsupportedOperationException, IllegalArgumentException, ClosedWatchServiceException, IOException, SecurityException
register
in interface Watchable
UnsupportedOperationException
IllegalArgumentException
ClosedWatchServiceException
IOException
SecurityException
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.