core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
/**
     * Removes an attribute.
     * @param attrName The name of the attribute to remove.
     * @throws FileSystemException if an error occurs.
     * @since 2.0
     */
Removes an attribute.
@param attrName The name of the attribute to remove.
@throws FileSystemException if an error occurs.
Removes an attribute . @param attrName The name of the attribute to remove . @throws FileSystemException if an error occurs .
public void removeAttribute(final String attrName) throws FileSystemException
    {
        if (!fileObject.getType().hasAttributes())
        {
            throw new FileSystemException("vfs.provider/remove-attribute-no-exist.error", fileObject);
        }
        try
        {
            fileObject.doRemoveAttribute(attrName);
        }
        catch (final Exception e)
        {
            throw new FileSystemException("vfs.provider/remove-attribute.error", new Object[]{attrName, fileObject}, e);
        }
        if (attrs != null)
        {
            attrs.remove(attrName);
        }
    }
public void removeAttribute ( final String attrName ) throws FileSystemException { if ( ! fileObject . getType ( ) . hasAttributes ( ) ) { throw new FileSystemException ( "vfs.provider/remove-attribute-no-exist.error" , fileObject ) ; } try { fileObject . doRemoveAttribute ( attrName ) ; } catch ( final Exception e ) { throw new FileSystemException ( "vfs.provider/remove-attribute.error" , new Object [ ] { attrName , fileObject } , e ) ; } if ( attrs != null ) { attrs . remove ( attrName ) ; } }
Removes an attribute.
Removes an attribute .