/** * Gets the value of an attribute. * * @param attrName The attribute name. * @return The value of the attribute or null. * @throws FileSystemException if an error occurs. */ @Override public Object getAttribute(final String attrName) throws FileSystemException { getAttributes(); return attrs.get(attrName); }
/** * Gets the value of an attribute. * * @param attrName The attribute name. * @return The value of the attribute or null. * @throws FileSystemException if an error occurs. */ @Override public Object getAttribute(final String attrName) throws FileSystemException { getAttributes(); return attrs.get(attrName); }
/** * Gets the value of an attribute. * * @param attrName The attribute name. * @return The value of the attribute or null. * @throws FileSystemException if an error occurs. */ @Override public Object getAttribute(final String attrName) throws FileSystemException { getAttributes(); return attrs.get(attrName); }
/** * Lists the attributes of this file. * * @return An array of attribute names. * @throws FileSystemException if an error occurs. */ @Override public String[] getAttributeNames() throws FileSystemException { getAttributes(); final Set<String> names = attrs.keySet(); return names.toArray(new String[names.size()]); }
/** * Lists the attributes of this file. * * @return An array of attribute names. * @throws FileSystemException if an error occurs. */ @Override public String[] getAttributeNames() throws FileSystemException { getAttributes(); final Set<String> names = attrs.keySet(); return names.toArray(new String[names.size()]); }
/** * Lists the attributes of this file. * * @return An array of attribute names. * @throws FileSystemException if an error occurs. */ @Override public String[] getAttributeNames() throws FileSystemException { getAttributes(); final Set<String> names = attrs.keySet(); return names.toArray(new String[names.size()]); }
/** * 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 */ @Override 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. * * @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 */ @Override 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. * * @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 */ @Override 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); }