java.lang.Object
com.pervasive.datarush.io.FTPPath
- All Implemented Interfaces:
Path,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the file system provider for this path.getHost()getName()Gets the last element of the path.Gets the path referring to the location containing the path.getPath()intgetPort()getRoot()inthashCode()booleanIndicates whether the path is absolute or relative.booleanisRoot()Adds additional elements to the path.Converts a relative path into an absolute path.toFile()Gets the local file corresponding to the path.toString()Gets the string representation of the path.toURL()Returns the URL string corresponding to this path.
-
Method Details
-
getFileSystemProvider
Description copied from interface:PathGets the file system provider for this path.- Specified by:
getFileSystemProviderin interfacePath- Returns:
- the file system provider associated with the path
-
isAbsolute
public boolean isAbsolute()Description copied from interface:PathIndicates whether the path is absolute or relative. That is, does the path start from the root of the associated file system.For most file systems, all paths are absolute.
- Specified by:
isAbsolutein interfacePath- Returns:
trueif the path starts from the file system root,falseotherwise.
-
toAbsolutePath
Description copied from interface:PathConverts a relative path into an absolute path.- Specified by:
toAbsolutePathin interfacePath- Returns:
- the absolute path pointing to the same location. If the path is already absolute, it is returned.
-
toFile
Description copied from interface:PathGets the local file corresponding to the path. This only makes sense when the path refers to the local file system. For other paths, it always returnsnull. -
getParent
Description copied from interface:PathGets the path referring to the location containing the path. -
getName
Description copied from interface:PathGets the last element of the path. -
resolve
Description copied from interface:PathAdds additional elements to the path. The provided string is interpreted as a relative path starting from the path's location. -
toString
Description copied from interface:PathGets the string representation of the path. It must be true thatPaths.asPath(path.toString())refers to the same location aspath. However, it may not the case thatpathString.equals(Paths.asPath(pathString).toString()). -
toURL
Description copied from interface:PathReturns the URL string corresponding to this path. -
equals
-
hashCode
public int hashCode() -
getHost
-
getScheme
-
getPort
public int getPort() -
getPath
-
getRoot
-
isRoot
public boolean isRoot()
-