Liferay 7.0-ce-b4

com.liferay.portal.kernel.nio
Class PathWrapper

java.lang.Object
  extended by com.liferay.portal.kernel.nio.PathWrapper
All Implemented Interfaces:
Comparable<java.nio.file.Path>, Iterable<java.nio.file.Path>, java.nio.file.Path, java.nio.file.Watchable

public class PathWrapper
extends Object
implements java.nio.file.Path


Constructor Summary
PathWrapper(java.nio.file.Path path, java.nio.file.FileSystem fileSystem)
           
 
Method Summary
 int compareTo(java.nio.file.Path path)
           
 boolean endsWith(java.nio.file.Path path)
           
 boolean endsWith(String path)
           
 boolean equals(Object path)
           
 java.nio.file.Path getFileName()
           
 java.nio.file.FileSystem getFileSystem()
           
 java.nio.file.Path getName(int index)
           
 int getNameCount()
           
 java.nio.file.Path getParent()
           
 java.nio.file.Path getRoot()
           
 int hashCode()
           
 boolean isAbsolute()
           
 Iterator<java.nio.file.Path> iterator()
           
 java.nio.file.Path normalize()
           
 java.nio.file.WatchKey register(java.nio.file.WatchService watcherService, java.nio.file.WatchEvent.Kind<?>... kinds)
           
 java.nio.file.WatchKey register(java.nio.file.WatchService watcherService, java.nio.file.WatchEvent.Kind<?>[] kinds, java.nio.file.WatchEvent.Modifier... modifiers)
           
 java.nio.file.Path relativize(java.nio.file.Path path)
           
 java.nio.file.Path resolve(java.nio.file.Path path)
           
 java.nio.file.Path resolve(String path)
           
 java.nio.file.Path resolveSibling(java.nio.file.Path path)
           
 java.nio.file.Path resolveSibling(String path)
           
 boolean startsWith(java.nio.file.Path path)
           
 boolean startsWith(String path)
           
 java.nio.file.Path subpath(int beginIndex, int endIndex)
           
 java.nio.file.Path toAbsolutePath()
           
 File toFile()
           
 java.nio.file.Path toRealPath(java.nio.file.LinkOption... linkOptions)
           
 String toString()
           
 URI toUri()
           
protected static java.nio.file.Path unwrapPath(java.nio.file.Path path)
           
protected static java.nio.file.Path wrapPath(java.nio.file.Path path, java.nio.file.FileSystem fileSystem)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathWrapper

public PathWrapper(java.nio.file.Path path,
                   java.nio.file.FileSystem fileSystem)
Method Detail

compareTo

public int compareTo(java.nio.file.Path path)
Specified by:
compareTo in interface Comparable<java.nio.file.Path>
Specified by:
compareTo in interface java.nio.file.Path

endsWith

public boolean endsWith(java.nio.file.Path path)
Specified by:
endsWith in interface java.nio.file.Path

endsWith

public boolean endsWith(String path)
Specified by:
endsWith in interface java.nio.file.Path

equals

public boolean equals(Object path)
Specified by:
equals in interface java.nio.file.Path
Overrides:
equals in class Object

getFileName

public java.nio.file.Path getFileName()
Specified by:
getFileName in interface java.nio.file.Path

getFileSystem

public java.nio.file.FileSystem getFileSystem()
Specified by:
getFileSystem in interface java.nio.file.Path

getName

public java.nio.file.Path getName(int index)
Specified by:
getName in interface java.nio.file.Path

getNameCount

public int getNameCount()
Specified by:
getNameCount in interface java.nio.file.Path

getParent

public java.nio.file.Path getParent()
Specified by:
getParent in interface java.nio.file.Path

getRoot

public java.nio.file.Path getRoot()
Specified by:
getRoot in interface java.nio.file.Path

hashCode

public int hashCode()
Specified by:
hashCode in interface java.nio.file.Path
Overrides:
hashCode in class Object

isAbsolute

public boolean isAbsolute()
Specified by:
isAbsolute in interface java.nio.file.Path

iterator

public Iterator<java.nio.file.Path> iterator()
Specified by:
iterator in interface Iterable<java.nio.file.Path>
Specified by:
iterator in interface java.nio.file.Path

normalize

public java.nio.file.Path normalize()
Specified by:
normalize in interface java.nio.file.Path

register

public java.nio.file.WatchKey register(java.nio.file.WatchService watcherService,
                                       java.nio.file.WatchEvent.Kind<?>... kinds)
                                throws IOException
Specified by:
register in interface java.nio.file.Path
Specified by:
register in interface java.nio.file.Watchable
Throws:
IOException

register

public java.nio.file.WatchKey register(java.nio.file.WatchService watcherService,
                                       java.nio.file.WatchEvent.Kind<?>[] kinds,
                                       java.nio.file.WatchEvent.Modifier... modifiers)
                                throws IOException
Specified by:
register in interface java.nio.file.Path
Specified by:
register in interface java.nio.file.Watchable
Throws:
IOException

relativize

public java.nio.file.Path relativize(java.nio.file.Path path)
Specified by:
relativize in interface java.nio.file.Path

resolve

public java.nio.file.Path resolve(java.nio.file.Path path)
Specified by:
resolve in interface java.nio.file.Path

resolve

public java.nio.file.Path resolve(String path)
Specified by:
resolve in interface java.nio.file.Path

resolveSibling

public java.nio.file.Path resolveSibling(java.nio.file.Path path)
Specified by:
resolveSibling in interface java.nio.file.Path

resolveSibling

public java.nio.file.Path resolveSibling(String path)
Specified by:
resolveSibling in interface java.nio.file.Path

startsWith

public boolean startsWith(java.nio.file.Path path)
Specified by:
startsWith in interface java.nio.file.Path

startsWith

public boolean startsWith(String path)
Specified by:
startsWith in interface java.nio.file.Path

subpath

public java.nio.file.Path subpath(int beginIndex,
                                  int endIndex)
Specified by:
subpath in interface java.nio.file.Path

toAbsolutePath

public java.nio.file.Path toAbsolutePath()
Specified by:
toAbsolutePath in interface java.nio.file.Path

toFile

public File toFile()
Specified by:
toFile in interface java.nio.file.Path

toRealPath

public java.nio.file.Path toRealPath(java.nio.file.LinkOption... linkOptions)
                              throws IOException
Specified by:
toRealPath in interface java.nio.file.Path
Throws:
IOException

toString

public String toString()
Specified by:
toString in interface java.nio.file.Path
Overrides:
toString in class Object

toUri

public URI toUri()
Specified by:
toUri in interface java.nio.file.Path

unwrapPath

protected static java.nio.file.Path unwrapPath(java.nio.file.Path path)

wrapPath

protected static java.nio.file.Path wrapPath(java.nio.file.Path path,
                                             java.nio.file.FileSystem fileSystem)

Liferay 7.0-ce-b4