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 TypeMethodDescriptionintbooleanbooleanbooleangetName(int index) intgetRoot()inthashCode()booleaniterator()register(WatchService watchService, WatchEvent.Kind<?>... kinds) register(WatchService watchService, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier... modifiers) relativize(Path path) resolveSibling(String path) resolveSibling(Path path) booleanstartsWith(String path) booleanstartsWith(Path path) subpath(int beginIndex, int endIndex) toFile()toRealPath(LinkOption... linkOptions) toString()toUri()protected static PathunwrapPath(Path path) protected static PathwrapPath(Path path, FileSystem fileSystem) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PathWrapper
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
endsWith
-
endsWith
-
equals
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
getName
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getParent
-
getRoot
-
hashCode
public int hashCode() -
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
iterator
-
normalize
-
register
- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
register
public WatchKey register(WatchService watchService, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
relativize
- Specified by:
relativizein interfacePath
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
startsWith
- Specified by:
startsWithin interfacePath
-
startsWith
- Specified by:
startsWithin interfacePath
-
subpath
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toFile
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
toString
-
toUri
-
unwrapPath
-
wrapPath
-