Class TruffleFile.Attributes

java.lang.Object
com.oracle.truffle.api.TruffleFile.Attributes
Enclosing class:
TruffleFile

public static final class TruffleFile.Attributes extends Object
A view over file's attributes values obtained by getAttributes.
Since:
19.0
  • Method Details

    • get

      public <T> T get(TruffleFile.AttributeDescriptor<T> descriptor)
      Returns the attribute value.
      Parameters:
      descriptor - the attribute to obtain value for
      Returns:
      the attribute value, may return null if the filesystem doesn't support the attribute.
      Throws:
      IllegalArgumentException - if the view was not created for the given attribute
      Since:
      19.0