public class LocalRemoteFileAttributes extends Object implements IRemoteFileAttributes
LocalRemoteFile
instances.ARCHIVE_ATTRIBUTE, EXEC_ATTRIBUTE, HIDDEN_ATTRIBUTE, READ_ATTRIBUTE, SYMLINK_ATTRIBUTE, SYMLINK_TARGET_ATTRIBUTE, WRITE_ATTRIBUTE
Constructor and Description |
---|
LocalRemoteFileAttributes(File file) |
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key)
Get file attribute with given key.
|
Iterator |
getAttributeKeys()
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.
|
String |
toString() |
public LocalRemoteFileAttributes(File file)
public String getAttribute(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 Iterator getAttributeKeys()
IRemoteFileAttributes
getAttributeKeys
in interface IRemoteFileAttributes
null
.public void setAttribute(String key, 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
.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.