core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
/**
     * Checks if an attribute exists.
     * @param attrName The name of the attribute to check.
     * @return true if the attribute is associated with the file.
     * @throws FileSystemException if an error occurs.
     * @since 2.0
     */
Checks if an attribute exists.
@param attrName The name of the attribute to check.
@return true if the attribute is associated with the file.
@throws FileSystemException if an error occurs.
Checks if an attribute exists . @param attrName The name of the attribute to check . @return true if the attribute is associated with the file . @throws FileSystemException if an error occurs .
public boolean hasAttribute(final String attrName) throws FileSystemException
    {
        if (!fileObject.getType().hasAttributes())
        {
            throw new FileSystemException("vfs.provider/exists-attributes-no-exist.error", fileObject);
        }
        getAttributes();
        return attrs.containsKey(attrName);
    }
public boolean hasAttribute ( final String attrName ) throws FileSystemException { if ( ! fileObject . getType ( ) . hasAttributes ( ) ) { throw new FileSystemException ( "vfs.provider/exists-attributes-no-exist.error" , fileObject ) ; } getAttributes ( ) ; return attrs . containsKey ( attrName ) ; }
Checks if an attribute exists.
Checks if an attribute exists .