public class ProtocolPath extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
isDir
Specifies whether this path is a path to a directory or file
|
protected String |
path
The string verion of the path in the URL
|
protected boolean |
relativeToHOME |
protected String |
remotePath |
Constructor and Description |
---|
ProtocolPath() |
ProtocolPath(String path,
boolean isDir) |
Modifier and Type | Method and Description |
---|---|
protected String |
checkForDelimiters(String path) |
boolean |
equals(Object path) |
String |
getDownloadFileName()
Returns the file name that is used when downloading the file
|
String |
getDownloadPath()
Returns the path that is used when downloading the file
|
String |
getFileName()
Return the name of the file for which this path belongs
|
String |
getParentDirPath() |
ProtocolPath |
getParentPath() |
String |
getPathString() |
boolean |
isDirectory()
Tells whether this path is a path to a directory or not
|
boolean |
isRelativeToHOME() |
String |
toString() |
protected String path
protected String remotePath
protected boolean relativeToHOME
protected boolean isDir
public ProtocolPath()
public ProtocolPath(String path, boolean isDir)
public boolean isRelativeToHOME()
public String getPathString()
public String getFileName()
public String getDownloadPath()
public String getDownloadFileName()
public boolean isDirectory()
public String getParentDirPath() throws MalformedURLException
MalformedURLException
public ProtocolPath getParentPath() throws MalformedURLException
MalformedURLException
Copyright © 1999-2014 Apache OODT. All Rights Reserved.