Package org.eclipse.ecf.filetransfer
Interface IRemoteFileInfo
- 
 public interface IRemoteFileInfoInformation about a remote file. Last modified day/time, length in bytes, whether the remote file is a directory, a name, and file attributes.- See Also:
- IRemoteFile
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intNO_LAST_MODIFIEDstatic intNO_LENGTHstatic intNONEDeprecated.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description IRemoteFileAttributesgetAttributes()Get remote file attributes.longgetLastModified()Returns the last modified time for this file, orNO_LAST_MODIFIEDif the file does not exist or the last modified time could not be computed.longgetLength()Returns the length of this file, orNO_LENGTHif the file does not exist, is a directory, or the length could not be computed.StringgetName()Returns the name of this file.booleanisDirectory()Returns whether this file is a directory, orfalseif this file does not exist.voidsetAttributes(IRemoteFileAttributes attributes)Set the attributes for this remote file info.voidsetLastModified(long time)Set the last modified time for this remote file info.voidsetName(String name)Set the underlying name for this remote file info.
 
- 
- 
- 
Field Detail- 
NO_LENGTHstatic final int NO_LENGTH - See Also:
- Constant Field Values
 
 - 
NONEstatic final int NONE Deprecated.- See Also:
- Constant Field Values
 
 - 
NO_LAST_MODIFIEDstatic final int NO_LAST_MODIFIED - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getLastModifiedlong getLastModified() Returns the last modified time for this file, orNO_LAST_MODIFIEDif 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). - Returns:
- the last modified time for this file, or NO_LAST_MODIFIEDif file does not exist or last modified not known or could not be computed.
 
 - 
getLengthlong getLength() Returns the length of this file, orNO_LENGTHif the file does not exist, is a directory, or the length could not be computed.- Returns:
- the length of this file, or NO_LENGTH
 
 - 
isDirectoryboolean isDirectory() Returns whether this file is a directory, orfalseif this file does not exist.- Returns:
- trueif this file is a directory, and- falseotherwise.
 
 - 
getNameString getName() Returns the name of this file.- Returns:
- the name of this file.  Will not return null.
 
 - 
getAttributesIRemoteFileAttributes getAttributes() Get remote file attributes.- Returns:
- IRemoteFileAttributes for this IRemoteFile.  Will not return null.
 
 - 
setAttributesvoid setAttributes(IRemoteFileAttributes attributes) Set the attributes for this remote file info.- Parameters:
- attributes- the new attribute values to use.
 
 - 
setNamevoid setName(String name) Set the underlying name for this remote file info.- Parameters:
- name- the new name to use. Must not be- null.
 
 - 
setLastModifiedvoid setLastModified(long time) Set the last modified time for this remote file info.- Parameters:
- time- the time to use. See- getLastModified()for meaning of time value.
 
 
- 
 
-