Package org.uberfire.java.nio.fs.jgit
Class JGitFSPath
- java.lang.Object
-
- org.uberfire.java.nio.fs.jgit.JGitFSPath
-
- All Implemented Interfaces:
Comparable<org.uberfire.java.nio.file.Path>,Iterable<org.uberfire.java.nio.file.Path>,org.uberfire.java.nio.base.FSPath,org.uberfire.java.nio.file.Path,org.uberfire.java.nio.file.Watchable
public class JGitFSPath extends Object implements org.uberfire.java.nio.base.FSPath
-
-
Constructor Summary
Constructors Constructor Description JGitFSPath(JGitFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(org.uberfire.java.nio.file.Path path)booleanendsWith(String other)booleanendsWith(org.uberfire.java.nio.file.Path other)org.uberfire.java.nio.file.PathgetFileName()org.uberfire.java.nio.file.FileSystemgetFileSystem()org.uberfire.java.nio.file.PathgetName(int index)intgetNameCount()org.uberfire.java.nio.file.PathgetParent()org.uberfire.java.nio.file.PathgetRoot()booleanisAbsolute()Iterator<org.uberfire.java.nio.file.Path>iterator()org.uberfire.java.nio.file.Pathnormalize()org.uberfire.java.nio.file.WatchKeyregister(org.uberfire.java.nio.file.WatchService watcher, org.uberfire.java.nio.file.WatchEvent.Kind<?>... events)org.uberfire.java.nio.file.WatchKeyregister(org.uberfire.java.nio.file.WatchService watcher, org.uberfire.java.nio.file.WatchEvent.Kind<?>[] events, org.uberfire.java.nio.file.WatchEvent.Modifier... modifiers)org.uberfire.java.nio.file.Pathrelativize(org.uberfire.java.nio.file.Path other)org.uberfire.java.nio.file.Pathresolve(String other)org.uberfire.java.nio.file.Pathresolve(org.uberfire.java.nio.file.Path other)org.uberfire.java.nio.file.PathresolveSibling(String other)org.uberfire.java.nio.file.PathresolveSibling(org.uberfire.java.nio.file.Path other)booleanstartsWith(String other)booleanstartsWith(org.uberfire.java.nio.file.Path other)org.uberfire.java.nio.file.Pathsubpath(int beginIndex, int endIndex)org.uberfire.java.nio.file.PathtoAbsolutePath()FiletoFile()org.uberfire.java.nio.file.PathtoRealPath(org.uberfire.java.nio.file.LinkOption... options)URItoUri()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
JGitFSPath
public JGitFSPath(JGitFileSystem fs)
-
-
Method Detail
-
getFileSystem
public org.uberfire.java.nio.file.FileSystem getFileSystem()
- Specified by:
getFileSystemin interfaceorg.uberfire.java.nio.file.Path
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfaceorg.uberfire.java.nio.file.Path
-
getRoot
public org.uberfire.java.nio.file.Path getRoot()
- Specified by:
getRootin interfaceorg.uberfire.java.nio.file.Path
-
getFileName
public org.uberfire.java.nio.file.Path getFileName()
- Specified by:
getFileNamein interfaceorg.uberfire.java.nio.file.Path
-
getParent
public org.uberfire.java.nio.file.Path getParent()
- Specified by:
getParentin interfaceorg.uberfire.java.nio.file.Path
-
getNameCount
public int getNameCount()
- Specified by:
getNameCountin interfaceorg.uberfire.java.nio.file.Path
-
getName
public org.uberfire.java.nio.file.Path getName(int index) throws IllegalArgumentException- Specified by:
getNamein interfaceorg.uberfire.java.nio.file.Path- Throws:
IllegalArgumentException
-
subpath
public org.uberfire.java.nio.file.Path subpath(int beginIndex, int endIndex) throws IllegalArgumentException- Specified by:
subpathin interfaceorg.uberfire.java.nio.file.Path- Throws:
IllegalArgumentException
-
startsWith
public boolean startsWith(org.uberfire.java.nio.file.Path other)
- Specified by:
startsWithin interfaceorg.uberfire.java.nio.file.Path
-
startsWith
public boolean startsWith(String other) throws org.uberfire.java.nio.file.InvalidPathException
- Specified by:
startsWithin interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.file.InvalidPathException
-
endsWith
public boolean endsWith(org.uberfire.java.nio.file.Path other)
- Specified by:
endsWithin interfaceorg.uberfire.java.nio.file.Path
-
endsWith
public boolean endsWith(String other) throws org.uberfire.java.nio.file.InvalidPathException
- Specified by:
endsWithin interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.file.InvalidPathException
-
normalize
public org.uberfire.java.nio.file.Path normalize()
- Specified by:
normalizein interfaceorg.uberfire.java.nio.file.Path
-
resolve
public org.uberfire.java.nio.file.Path resolve(org.uberfire.java.nio.file.Path other)
- Specified by:
resolvein interfaceorg.uberfire.java.nio.file.Path
-
resolve
public org.uberfire.java.nio.file.Path resolve(String other) throws org.uberfire.java.nio.file.InvalidPathException
- Specified by:
resolvein interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.file.InvalidPathException
-
resolveSibling
public org.uberfire.java.nio.file.Path resolveSibling(org.uberfire.java.nio.file.Path other)
- Specified by:
resolveSiblingin interfaceorg.uberfire.java.nio.file.Path
-
resolveSibling
public org.uberfire.java.nio.file.Path resolveSibling(String other) throws org.uberfire.java.nio.file.InvalidPathException
- Specified by:
resolveSiblingin interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.file.InvalidPathException
-
relativize
public org.uberfire.java.nio.file.Path relativize(org.uberfire.java.nio.file.Path other) throws IllegalArgumentException- Specified by:
relativizein interfaceorg.uberfire.java.nio.file.Path- Throws:
IllegalArgumentException
-
toUri
public URI toUri() throws org.uberfire.java.nio.IOException, SecurityException
- Specified by:
toUriin interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.IOExceptionSecurityException
-
toAbsolutePath
public org.uberfire.java.nio.file.Path toAbsolutePath() throws org.uberfire.java.nio.IOException, SecurityException- Specified by:
toAbsolutePathin interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.IOExceptionSecurityException
-
toRealPath
public org.uberfire.java.nio.file.Path toRealPath(org.uberfire.java.nio.file.LinkOption... options) throws org.uberfire.java.nio.IOException, SecurityException- Specified by:
toRealPathin interfaceorg.uberfire.java.nio.file.Path- Throws:
org.uberfire.java.nio.IOExceptionSecurityException
-
toFile
public File toFile() throws UnsupportedOperationException
- Specified by:
toFilein interfaceorg.uberfire.java.nio.file.Path- Throws:
UnsupportedOperationException
-
compareTo
public int compareTo(org.uberfire.java.nio.file.Path path)
- Specified by:
compareToin interfaceComparable<org.uberfire.java.nio.file.Path>
-
iterator
public Iterator<org.uberfire.java.nio.file.Path> iterator()
-
register
public org.uberfire.java.nio.file.WatchKey register(org.uberfire.java.nio.file.WatchService watcher, org.uberfire.java.nio.file.WatchEvent.Kind<?>[] events, org.uberfire.java.nio.file.WatchEvent.Modifier... modifiers) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.file.ClosedWatchServiceException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
registerin interfaceorg.uberfire.java.nio.file.Watchable- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.file.ClosedWatchServiceExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
register
public org.uberfire.java.nio.file.WatchKey register(org.uberfire.java.nio.file.WatchService watcher, org.uberfire.java.nio.file.WatchEvent.Kind<?>... events) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.file.ClosedWatchServiceException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
registerin interfaceorg.uberfire.java.nio.file.Watchable- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.file.ClosedWatchServiceExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
-