Package org.eclipse.ecf.filetransfer
Interface IRemoteFileAttributes
- All Known Implementing Classes:
LocalRemoteFileAttributes
,URLRemoteFileAttributes
public interface IRemoteFileAttributes
Remote file attributes. These attributes represent characteristics of remote files (e.g. read only, writeable, executable, archive, etc.).
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) Get file attribute with given key.Get all of the attribute keys in this map of file attributes.void
setAttribute
(String key, String value) Set a given attribute value in this remote file attributes.
-
Field Details
-
READ_ATTRIBUTE
- See Also:
-
WRITE_ATTRIBUTE
- See Also:
-
EXEC_ATTRIBUTE
- See Also:
-
ARCHIVE_ATTRIBUTE
- See Also:
-
HIDDEN_ATTRIBUTE
- See Also:
-
SYMLINK_ATTRIBUTE
- See Also:
-
SYMLINK_TARGET_ATTRIBUTE
- See Also:
-
-
Method Details
-
getAttribute
Get file attribute with given key. Returnsnull
if attribute not in this map of attributes.- Parameters:
key
- to use to find the given attribute. Must not benull
.- Returns:
- value of attribute.
null
if not found.
-
getAttributeKeys
Iterator getAttributeKeys()Get all of the attribute keys in this map of file attributes.- Returns:
- Iterator of the attribute keys for this map. Will not return
null
.
-
setAttribute
Set a given attribute value in this remote file attributes.- Parameters:
key
- the key to use for the attribute. Must not benull
.value
- the value for the given key. Must not benull
.
-