APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.nio.fs

pack-priv abstract Class AbstractBasicFileAttributeView

extends Object
implements BasicFileAttributeView, DynamicFileAttributeView
Class Inheritance
All Implemented Interfaces
sun.nio.fs.DynamicFileAttributeView, java.nio.file.attribute.BasicFileAttributeView, java.nio.file.attribute.FileAttributeView, java.nio.file.attribute.AttributeView
Known Direct Subclasses
sun.nio.fs.UnixFileAttributeViews.Basic
Imports
java.nio.file.attribute.*, java.util.*, java.io.IOException

Base implementation of BasicFileAttributeView

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
AbstractBasicFileAttributeView.AttributesBuilder

Used to build a map of attribute name/values.

Field Summary

Modifier and TypeField and Description
pack-priv static final Set<String>
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
addRequestedBasicAttributes(BasicFileAttributes attrs, AbstractBasicFileAttributeView.AttributesBuilder builder)

Invoked by readAttributes or sub-classes to add all matching basic attributes to the builder

public String
name()

Implements java.nio.file.attribute.BasicFileAttributeView.name.

Returns the name of the attribute view.

public Map<String, Object>
readAttributes(String[] requested)

Implements sun.nio.fs.DynamicFileAttributeView.readAttributes.

Reads a set of file attributes as a bulk operation.

public void
setAttribute(String attribute, Object value)

Implements sun.nio.fs.DynamicFileAttributeView.setAttribute.

Sets/updates the value of an attribute.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

basicAttributeNamesback to summary
pack-priv static final Set<String> basicAttributeNames
CREATION_TIME_NAMEback to summary
private static final String CREATION_TIME_NAME
FILE_KEY_NAMEback to summary
private static final String FILE_KEY_NAME
IS_DIRECTORY_NAMEback to summary
private static final String IS_DIRECTORY_NAME
IS_OTHER_NAMEback to summary
private static final String IS_OTHER_NAME
IS_REGULAR_FILE_NAMEback to summary
private static final String IS_REGULAR_FILE_NAME
LAST_ACCESS_TIME_NAMEback to summary
private static final String LAST_ACCESS_TIME_NAME
LAST_MODIFIED_TIME_NAMEback to summary
private static final String LAST_MODIFIED_TIME_NAME
SIZE_NAMEback to summary
private static final String SIZE_NAME

Constructor Detail

AbstractBasicFileAttributeViewback to summary
protected AbstractBasicFileAttributeView()

Method Detail

addRequestedBasicAttributesback to summary
pack-priv final void addRequestedBasicAttributes(BasicFileAttributes attrs, AbstractBasicFileAttributeView.AttributesBuilder builder)

Invoked by readAttributes or sub-classes to add all matching basic attributes to the builder

nameback to summary
public String name()

Implements java.nio.file.attribute.BasicFileAttributeView.name.

Doc from java.nio.file.attribute.BasicFileAttributeView.name.

Returns the name of the attribute view. Attribute views of this type have the name "basic".

Annotations
@Override
readAttributesback to summary
public Map<String, Object> readAttributes(String[] requested) throws IOException

Implements sun.nio.fs.DynamicFileAttributeView.readAttributes.

Doc from sun.nio.fs.DynamicFileAttributeView.readAttributes.

Reads a set of file attributes as a bulk operation.

Annotations
@Override
setAttributeback to summary
public void setAttribute(String attribute, Object value) throws IOException

Implements sun.nio.fs.DynamicFileAttributeView.setAttribute.

Doc from sun.nio.fs.DynamicFileAttributeView.setAttribute.

Sets/updates the value of an attribute.

Annotations
@Override
sun.nio.fs back to summary

pack-priv Class AbstractBasicFileAttributeView.AttributesBuilder

extends Object
Class Inheritance

Used to build a map of attribute name/values.

Field Summary

Modifier and TypeField and Description
private boolean
private Map<String, Object>
private Set<String>

Constructor Summary

AccessConstructor and Description
private
AttributesBuilder(Set<String> allowed, String[] requested)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
add(String name, Object value)

pack-priv static AbstractBasicFileAttributeView.AttributesBuilder
create(Set<String> allowed, String[] requested)

Creates builder to build up a map of the matching attributes

pack-priv boolean
match(String name)

Returns true if the attribute should be returned in the map

pack-priv Map<String, Object>
unmodifiableMap()

Returns the map.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

copyAllback to summary
private boolean copyAll
mapback to summary
private Map<String, Object> map
namesback to summary
private Set<String> names

Constructor Detail

AttributesBuilderback to summary
private AttributesBuilder(Set<String> allowed, String[] requested)

Method Detail

addback to summary
pack-priv void add(String name, Object value)
createback to summary
pack-priv static AbstractBasicFileAttributeView.AttributesBuilder create(Set<String> allowed, String[] requested)

Creates builder to build up a map of the matching attributes

matchback to summary
pack-priv boolean match(String name)

Returns true if the attribute should be returned in the map

unmodifiableMapback to summary
pack-priv Map<String, Object> unmodifiableMap()

Returns the map. Discard all references to the AttributesBuilder after invoking this method.