|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteFileInfo
Information about a remote file. Last modified day/time, length in bytes, whether the remote file is a directory, a name, and file attributes.
IRemoteFile
Field Summary | |
---|---|
static int |
NO_LAST_MODIFIED
|
static int |
NO_LENGTH
|
static int |
NONE
Deprecated. |
Method Summary | |
---|---|
IRemoteFileAttributes |
getAttributes()
Get remote file attributes. |
long |
getLastModified()
Returns the last modified time for this file, or NO_LAST_MODIFIED
if the file does not exist or the last modified time could not be computed. |
long |
getLength()
Returns the length of this file, or NO_LENGTH
if the file does not exist, is a directory, or the length could not be computed. |
java.lang.String |
getName()
Returns the name of this file. |
boolean |
isDirectory()
Returns whether this file is a directory, or false if this
file does not exist. |
void |
setAttributes(IRemoteFileAttributes attributes)
Set the attributes for this remote file info. |
void |
setLastModified(long time)
Set the last modified time for this remote file info. |
void |
setName(java.lang.String name)
Set the underlying name for this remote file info. |
Field Detail |
---|
static final int NO_LENGTH
static final int NONE
static final int NO_LAST_MODIFIED
Method Detail |
---|
long getLastModified()
NO_LAST_MODIFIED
if the file does not exist or the last modified time could not be computed.
The time is represented as the number of Universal Time (UT) milliseconds since the epoch (00:00:00 GMT, January 1, 1970).
NO_LAST_MODIFIED
if file
does not exist or last modified not known or could not be computed.long getLength()
NO_LENGTH
if the file does not exist, is a directory, or the length could not be computed.
NO_LENGTH
boolean isDirectory()
false
if this
file does not exist.
true
if this file is a directory, and false
otherwise.java.lang.String getName()
null
.IRemoteFileAttributes getAttributes()
null
.void setAttributes(IRemoteFileAttributes attributes)
attributes
- the new attribute values to use.void setName(java.lang.String name)
name
- the new name to use. Must not be null
.void setLastModified(long time)
time
- the time to use. See getLastModified()
for meaning of time value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |