public class LocalRemoteFileAttributes extends java.lang.Object implements IRemoteFileAttributes
LocalRemoteFile
instances.ARCHIVE_ATTRIBUTE, EXEC_ATTRIBUTE, HIDDEN_ATTRIBUTE, READ_ATTRIBUTE, SYMLINK_ATTRIBUTE, SYMLINK_TARGET_ATTRIBUTE, WRITE_ATTRIBUTE
Constructor and Description |
---|
LocalRemoteFileAttributes(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String key)
Get file attribute with given key.
|
java.util.Iterator |
getAttributeKeys()
Get all of the attribute keys in this map of file attributes.
|
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set a given attribute value in this remote file attributes.
|
java.lang.String |
toString() |
public java.lang.String getAttribute(java.lang.String key)
IRemoteFileAttributes
null
if attribute not in
this map of attributes.getAttribute
in interface IRemoteFileAttributes
key
- to use to find the given attribute. Must not be null
.null
if not found.public java.util.Iterator getAttributeKeys()
IRemoteFileAttributes
getAttributeKeys
in interface IRemoteFileAttributes
null
.public void setAttribute(java.lang.String key, java.lang.String value)
IRemoteFileAttributes
setAttribute
in interface IRemoteFileAttributes
key
- the key to use for the attribute. Must not be null
.value
- the value for the given key. Must not be null
.public java.lang.String toString()
toString
in class java.lang.Object