static Object readAttribute(FileObject forFO, AbstractFileSystem.Attr attr, String path, String attrName) { FileObject prev = ATTR_FOR.get(); try { ATTR_FOR.set(forFO); return attr.readAttribute(path, attrName); } finally { ATTR_FOR.set(prev); } } /** According to name of attribute returns attribute as object
getAbstractFileSystem().attr.renameAttributes(oldFullName, newFullName); } finally { getFileSystem().finishAtomicAction();
getAbstractFileSystem ().attr.renameAttributes (oldFullName, newFullName); } finally { getFileSystem ().finishAtomicAction ();
getAbstractFileSystem ().attr.renameAttributes (oldFullName, newFullName); } finally { getFileSystem ().finishAtomicAction ();
getAbstractFileSystem ().attr.deleteAttributes (fullName);
getAbstractFileSystem ().attr.deleteAttributes (fullName);
final Enumeration getAttributes (String path) { return getAbstractFileSystem ().attr.attributes (path); }
/** performance hack */ final Object getAttribute (String attrName, String path) { return getAbstractFileSystem ().attr.readAttribute (path, attrName); }
final Enumeration getAttributes (String path) { return getAbstractFileSystem ().attr.attributes (path); }
/** performance hack */ final Object getAttribute (String attrName, String path) { return getAbstractFileSystem ().attr.readAttribute (path, attrName); }
void setAttribute (String attrName, Object value, boolean fire) throws IOException { Object oldValue = null; //FileSystem fs = getAbstractFileSystem (); //if (fs.isReadOnly()) // FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N if (fire) oldValue = getAttribute (attrName); getAbstractFileSystem ().attr.writeAttribute (getPath (), attrName, value); if (fire && oldValue != value && hasAtLeastOneListeners () ) fileAttributeChanged0 (new FileAttributeEvent (this,attrName,oldValue,value)); }
void setAttribute (String attrName, Object value, boolean fire) throws IOException { Object oldValue = null; //FileSystem fs = getAbstractFileSystem (); //if (fs.isReadOnly()) // FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N if (fire) oldValue = getAttribute (attrName); getAbstractFileSystem ().attr.writeAttribute (getPath (), attrName, value); if (fire && oldValue != value && hasAtLeastOneListeners () ) fileAttributeChanged0 (new FileAttributeEvent (this,attrName,oldValue,value)); }
getAbstractFileSystem().attr.deleteAttributes(fullName);
void setAttribute(String attrName, Object value, boolean fire) throws IOException { Object oldValue = null; //FileSystem fs = getAbstractFileSystem (); //if (fs.isReadOnly()) XMLFileSystemTestHid.java:934 // throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", fs.getDisplayName ()); // NOI18N if (fire) { oldValue = getAttribute(attrName); } getAbstractFileSystem().attr.writeAttribute(getPath(), attrName, value); if (fire && (oldValue != value) && hasAtLeastOneListeners()) { fileAttributeChanged0(new FileAttributeEvent(this, attrName, oldValue, value)); } }
final Enumeration<String> getAttributes(String path) { return getAbstractFileSystem().attr.attributes(path); }