public final class PathImpl
extends java.lang.Object
implements java.nio.file.Path
| Modifier and Type | Field and Description | 
|---|---|
protected java.nio.file.FileSystem | 
fileSystem  | 
| Constructor and Description | 
|---|
PathImpl(java.nio.file.FileSystem fileSystem,
        java.lang.String first,
        java.lang.String... more)
Create a PathImpl. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(java.nio.file.Path other) | 
boolean | 
endsWith(java.nio.file.Path other) | 
boolean | 
endsWith(java.lang.String other) | 
boolean | 
equals(java.lang.Object o) | 
java.nio.file.attribute.FileTime | 
getCreationTime()
Get the creation time. 
 | 
PathImpl | 
getFileName() | 
java.nio.file.FileSystem | 
getFileSystem() | 
java.nio.file.attribute.FileTime | 
getLastAccessTime()
Get the last accessTime, which for directories
 is the creation time, and for files the last time
 the file was read. 
 | 
java.nio.file.attribute.FileTime | 
getLastModifiedTime()
Get the last modifiedTime, which for directories
 is the creation time, and for files the last time
 the file was modified. 
 | 
PathImpl | 
getName(int index) | 
int | 
getNameCount() | 
PathImpl | 
getParent() | 
PathImpl | 
getRoot() | 
int | 
hashCode() | 
boolean | 
isAbsolute() | 
boolean | 
isDirectory()
Determine if this path is a directory path. 
 | 
java.util.Iterator<java.nio.file.Path> | 
iterator() | 
PathImpl | 
normalize() | 
java.nio.file.WatchKey | 
register(java.nio.file.WatchService watcher,
        java.nio.file.WatchEvent.Kind<?>... events) | 
java.nio.file.WatchKey | 
register(java.nio.file.WatchService watcher,
        java.nio.file.WatchEvent.Kind<?>[] events,
        java.nio.file.WatchEvent.Modifier... modifiers) | 
java.nio.file.Path | 
relativize(java.nio.file.Path other)
 Note that this only works when other starts with this Path and this Path is a directory. 
 | 
PathImpl | 
resolve(java.nio.file.Path other) | 
PathImpl | 
resolve(java.lang.String other) | 
PathImpl | 
resolveSibling(java.nio.file.Path other) | 
PathImpl | 
resolveSibling(java.lang.String other) | 
void | 
setLastAccessTime(long lastAccessTime)
Set the last access time, which for directories
 is the creation time, and for files the last time
 the file was read. 
 | 
void | 
setLastModifiedTime(long lastModifiedTime)
Set the last modified time, which for directories
 is the creation time, and for files the last time
 the file was modified. 
 | 
boolean | 
startsWith(java.nio.file.Path other) | 
boolean | 
startsWith(java.lang.String other) | 
PathImpl | 
subpath(int beginIndex,
       int endIndex) | 
PathImpl | 
toAbsolutePath() | 
java.io.File | 
toFile() | 
java.nio.file.Path | 
toRealPath(java.nio.file.LinkOption... options) | 
java.lang.String | 
toString() | 
java.net.URI | 
toUri() | 
public PathImpl(java.nio.file.FileSystem fileSystem,
                java.lang.String first,
                java.lang.String... more)
fileSystem - The FileSystem associated with this pathfirst - The first part of the pathmore - Zero or more subsequent parts of the pathjava.lang.IllegalArgumentException - if fileSystem or first is nullpublic java.nio.file.FileSystem getFileSystem()
getFileSystem in interface java.nio.file.Pathpublic boolean isAbsolute()
isAbsolute in interface java.nio.file.Pathpublic PathImpl getRoot()
getRoot in interface java.nio.file.Pathpublic PathImpl getFileName()
getFileName in interface java.nio.file.Pathpublic PathImpl getParent()
getParent in interface java.nio.file.Pathpublic int getNameCount()
getNameCount in interface java.nio.file.Pathpublic PathImpl getName(int index)
getName in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if index is invalidpublic PathImpl subpath(int beginIndex, int endIndex)
subpath in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if beginIndex or endIndex is invalidpublic boolean startsWith(java.nio.file.Path other)
startsWith in interface java.nio.file.Pathpublic boolean startsWith(java.lang.String other)
startsWith in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if other cannot be made into a valid PathImplpublic boolean endsWith(java.nio.file.Path other)
endsWith in interface java.nio.file.Pathpublic boolean endsWith(java.lang.String other)
endsWith in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if other cannot be made into a valid PathImplpublic PathImpl normalize()
normalize in interface java.nio.file.Pathpublic PathImpl resolve(java.nio.file.Path other)
resolve in interface java.nio.file.Pathjava.lang.IllegalStateException - if this is not a directorypublic PathImpl resolve(java.lang.String other)
resolve in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if other cannot be made into a valid Pathjava.lang.IllegalStateException - if this is not a directorypublic PathImpl resolveSibling(java.nio.file.Path other)
resolveSibling in interface java.nio.file.Pathpublic PathImpl resolveSibling(java.lang.String other)
resolveSibling in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if other is not a valid pathpublic java.nio.file.Path relativize(java.nio.file.Path other)
relativize in interface java.nio.file.Pathjava.lang.IllegalArgumentException - if other is not a PathImpl or if
 it's not possible to make a relative pathpublic java.net.URI toUri()
toUri in interface java.nio.file.Pathpublic PathImpl toAbsolutePath()
toAbsolutePath in interface java.nio.file.Pathpublic java.nio.file.Path toRealPath(java.nio.file.LinkOption... options)
                              throws java.io.IOException
toRealPath in interface java.nio.file.Pathjava.io.IOExceptionpublic java.io.File toFile()
toFile in interface java.nio.file.Pathjava.lang.UnsupportedOperationExceptionpublic java.nio.file.WatchKey register(java.nio.file.WatchService watcher,
                                       java.nio.file.WatchEvent.Kind<?>[] events,
                                       java.nio.file.WatchEvent.Modifier... modifiers)
                                throws java.io.IOException
register in interface java.nio.file.Pathregister in interface java.nio.file.Watchablejava.lang.UnsupportedOperationExceptionjava.io.IOExceptionpublic java.nio.file.WatchKey register(java.nio.file.WatchService watcher,
                                       java.nio.file.WatchEvent.Kind<?>... events)
                                throws java.io.IOException
register in interface java.nio.file.Pathregister in interface java.nio.file.Watchablejava.lang.UnsupportedOperationExceptionjava.io.IOExceptionpublic java.util.Iterator<java.nio.file.Path> iterator()
iterator in interface java.lang.Iterable<java.nio.file.Path>iterator in interface java.nio.file.Pathpublic int compareTo(java.nio.file.Path other)
compareTo in interface java.lang.Comparable<java.nio.file.Path>compareTo in interface java.nio.file.Pathjava.lang.ClassCastException - if other is not a PathImplpublic boolean isDirectory()
public java.lang.String toString()
toString in interface java.nio.file.PathtoString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.nio.file.Pathequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.nio.file.PathhashCode in class java.lang.Objectpublic void setLastModifiedTime(long lastModifiedTime)
lastModifiedTime - The last modified timepublic java.nio.file.attribute.FileTime getLastModifiedTime()
public void setLastAccessTime(long lastAccessTime)
lastAccessTime - The last access timepublic java.nio.file.attribute.FileTime getLastAccessTime()
public java.nio.file.attribute.FileTime getCreationTime()