Package com.liferay.portal.kernel.nio
Class PathWrapper
Object
com.liferay.portal.kernel.nio.PathWrapper
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
getName
(int index) int
getRoot()
int
hashCode()
boolean
iterator()
register
(WatchService watchService, WatchEvent.Kind<?>... kinds) register
(WatchService watchService, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier... modifiers) relativize
(Path path) resolveSibling
(String path) resolveSibling
(Path path) boolean
startsWith
(String path) boolean
startsWith
(Path path) subpath
(int beginIndex, int endIndex) toFile()
toRealPath
(LinkOption... linkOptions) toString()
toUri()
protected static Path
unwrapPath
(Path path) protected static Path
wrapPath
(Path path, FileSystem fileSystem) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PathWrapper
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
-
endsWith
-
endsWith
-
equals
-
getFileName
- Specified by:
getFileName
in interfacePath
-
getFileSystem
- Specified by:
getFileSystem
in interfacePath
-
getName
-
getNameCount
public int getNameCount()- Specified by:
getNameCount
in interfacePath
-
getParent
-
getRoot
-
hashCode
public int hashCode() -
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolute
in interfacePath
-
iterator
-
normalize
-
register
- Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
register
public WatchKey register(WatchService watchService, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
relativize
- Specified by:
relativize
in interfacePath
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSibling
in interfacePath
-
resolveSibling
- Specified by:
resolveSibling
in interfacePath
-
startsWith
- Specified by:
startsWith
in interfacePath
-
startsWith
- Specified by:
startsWith
in interfacePath
-
subpath
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
-
toFile
-
toRealPath
- Specified by:
toRealPath
in interfacePath
- Throws:
IOException
-
toString
-
toUri
-
unwrapPath
-
wrapPath
-