public class ProtocolFile extends Object
Protocol
Constructor and Description |
---|
ProtocolFile(ProtocolFile parent,
String path,
boolean isDir) |
ProtocolFile(String path,
boolean isDir) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object path) |
ProtocolFile |
getAbsoluteFile()
Get Absolute pathed
ProtocolFile version of this ProtocolFile . |
String |
getName()
Gets the name of this file this path represents (i.e.
|
ProtocolFile |
getParent()
Gets the parent
ProtocolFile for this path. |
String |
getPath()
Gets the
String representation of this path. |
int |
hashCode() |
boolean |
isDir()
True is this path is a directory.
|
boolean |
isRelative()
True if this path is a relative path (i.e.
|
String |
toString() |
public static final String SEPARATOR
public ProtocolFile(String path, boolean isDir)
public ProtocolFile(ProtocolFile parent, String path, boolean isDir)
public boolean isDir()
public String getPath()
String
representation of this path.String
representation of this pathpublic String getName()
public boolean isRelative()
SEPARATOR
).public ProtocolFile getParent()
ProtocolFile
for this path.ProtocolFile
public ProtocolFile getAbsoluteFile()
ProtocolFile
version of this ProtocolFile
.ProtocolFile
Copyright © 1999-2014 Apache OODT. All Rights Reserved.