Class TruffleFile.AttributeDescriptor<T>

java.lang.Object
com.oracle.truffle.api.TruffleFile.AttributeDescriptor<T>
Enclosing class:
TruffleFile

public static final class TruffleFile.AttributeDescriptor<T> extends Object
Represents a file's attribute.

Not all attributes are supported by all filesystems. When the filesystem does not support the attribute the attribute read fails with UnsupportedOperationException.

Attributes can be read one by one by the getAttribute method or as a bulk read operation by getAttributes method. When more attributes are needed the bulk read provides better performance.

Since:
19.0
  • Method Details