站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Attributes (Master Filesystem) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.masterfs/1 1.11

org.netbeans.modules.masterfs.providers
Class Attributes

java.lang.Object
  extended by org.openide.filesystems.DefaultAttributes
      extended by 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

Field Summary
static String ATTRNAME
           
 
Fields inherited from class org.openide.filesystems.DefaultAttributes
ATTR_EXT, ATTR_NAME, ATTR_NAME_EXT
 
Constructor Summary
Attributes(AbstractFileSystem.Info info, AbstractFileSystem.Change change, AbstractFileSystem.List list)
           
Attributes(File mountPoint, AbstractFileSystem.Info info, AbstractFileSystem.Change change, AbstractFileSystem.List list)
           
 
Method Summary
 Enumeration attributes(String name)
           
 String[] children(String f)
          isn't filtered anymore as it was in DefaultAttributes
 void deleteAttributes(String name)
           
static File getRootForAttributes()
           
 Object readAttribute(String name, String attrName)
           
 void renameAttributes(String oldName, String newName)
           
 void writeAttribute(String name, String attrName, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRNAME

public static String ATTRNAME
Constructor Detail

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)
Method Detail

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

org.netbeans.modules.masterfs/1 1.11

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.