当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
Attributes (Master Filesystem) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.masterfs.providers
Class Attributes
java.lang.Object
org.openide.filesystems.DefaultAttributes
org.netbeans.modules.masterfs.providers.Attributes
- All Implemented Interfaces:
- Serializable, AbstractFileSystem.Attr, AbstractFileSystem.List
public class Attributes
- extends DefaultAttributes
Implementation of DefaultAttributes that should be shared by all
filesystems that are mounted into MasterFileSystem.
Ensures that .nbattrs file is stored in netbeans.user/var/cache/attribs/.nbattrs.
There exist just one file for all attributes. This implemenation is supposed
to provide backward compatibility.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRNAME
public static String ATTRNAME
Attributes
public Attributes(File mountPoint,
AbstractFileSystem.Info info,
AbstractFileSystem.Change change,
AbstractFileSystem.List list)
Attributes
public Attributes(AbstractFileSystem.Info info,
AbstractFileSystem.Change change,
AbstractFileSystem.List list)
getRootForAttributes
public static File getRootForAttributes()
children
public String[] children(String f)
- isn't filtered anymore as it was in DefaultAttributes
- Specified by:
children
in interface AbstractFileSystem.List
- Overrides:
children
in class DefaultAttributes
readAttribute
public Object readAttribute(String name,
String attrName)
- Specified by:
readAttribute
in interface AbstractFileSystem.Attr
- Overrides:
readAttribute
in class DefaultAttributes
writeAttribute
public void writeAttribute(String name,
String attrName,
Object value)
throws IOException
- Specified by:
writeAttribute
in interface AbstractFileSystem.Attr
- Overrides:
writeAttribute
in class DefaultAttributes
- Throws:
IOException
attributes
public Enumeration attributes(String name)
- Specified by:
attributes
in interface AbstractFileSystem.Attr
- Overrides:
attributes
in class DefaultAttributes
renameAttributes
public void renameAttributes(String oldName,
String newName)
- Specified by:
renameAttributes
in interface AbstractFileSystem.Attr
- Overrides:
renameAttributes
in class DefaultAttributes
deleteAttributes
public void deleteAttributes(String name)
- Specified by:
deleteAttributes
in interface AbstractFileSystem.Attr
- Overrides:
deleteAttributes
in class DefaultAttributes