public class FTPPath extends Object implements Path
Modifier and Type | Class and Description |
---|---|
static class |
FTPPath.FTPProtocol |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
FileSystemProvider |
getFileSystemProvider()
Gets the file system provider for this path.
|
String |
getHost() |
String |
getName()
Gets the last element of the path.
|
Path |
getParent()
Gets the path referring to the location containing
the path.
|
String |
getPath() |
int |
getPort() |
Path |
getRoot() |
FTPPath.FTPProtocol |
getScheme() |
int |
hashCode() |
boolean |
isAbsolute()
Indicates whether the path is absolute
or relative.
|
boolean |
isRoot() |
Path |
resolve(String childPath)
Adds additional elements to the path.
|
Path |
toAbsolutePath()
Converts a relative path into an absolute
path.
|
File |
toFile()
Gets the local file corresponding to the path.
|
String |
toString()
Gets the string representation of the path.
|
String |
toURL()
Returns the URL string corresponding to this path.
|
public FileSystemProvider getFileSystemProvider()
Path
getFileSystemProvider
in interface Path
public boolean isAbsolute()
Path
For most file systems, all paths are absolute.
isAbsolute
in interface Path
true
if the path starts
from the file system root, false
otherwise.public Path toAbsolutePath()
Path
toAbsolutePath
in interface Path
public File toFile()
Path
null
.public Path getParent()
Path
public String getName()
Path
public Path resolve(String childPath)
Path
public String toString()
Path
Paths.asPath(path.toString())
refers to the same location as path
.
However, it may not the case that
pathString.equals(Paths.asPath(pathString).toString())
.public String toURL()
Path
public boolean equals(Object o)
public int hashCode()
public String getHost()
public FTPPath.FTPProtocol getScheme()
public int getPort()
public String getPath()
public Path getRoot()
public boolean isRoot()
Copyright © 2020 Actian Corporation. All rights reserved.