- toString
Returns a string representation of this path, including its device id. The same
separator, "/", is u
- toFile
Returns a java.io.File corresponding to this path.
- toOSString
Returns a string representation of this path which uses the platform-dependent
path separator define
- append
Returns the canonicalized path obtained from the concatenation of the given
path's segments to the e
- segmentCount
Returns the number of segments in this path. Note that both root and empty paths
have 0 segments.
- removeLastSegments
Returns a copy of this path with the given number of segments removed from the
end. The device id is
- lastSegment
Returns the last segment of this path, ornull if it does not have any segments.
- removeFirstSegments
Returns a copy of this path with the given number of segments removed from the
beginning. The device
- segment
Returns the specified segment of this path, ornull if the path does not have
such a segment.
- equals
Returns whether this path equals the given object. Equality for paths is defined
to be: same sequenc
- isAbsolute
Returns whether this path is an absolute path (ignoring any device id). Absolute
paths start with a
- isPrefixOf
Returns whether this path is a prefix of the given path. To be a prefix, this
path's segments must a