Interface TextResourceContents

All Superinterfaces:
MetaCarrier, ResourceContents

public non-sealed interface TextResourceContents extends ResourceContents
The content of a resource which contains text data.
  • Method Details

    • text

      String text()
      The text data in the resource.
      Returns:
      the data
    • of

      static TextResourceContents of(String uri, String text)
      Creates a new TextResourceContents with a URI and text.
      Parameters:
      uri - the resource URI
      text - the text content
      Returns:
      the new text resource
    • builder

      static TextResourceContents.Builder builder(String uri, String text)
      Creates a builder for a TextResourceContents
      Parameters:
      uri - the resource URI
      text - the text content
      Returns:
      the new text resource builder