Interface Resource

All Known Implementing Classes:
ContentEl, FallbackEl, IncludeEl, StringResource

public interface Resource
Represents reference to a text resource capable of creating new readers.
Version:
1.0
Author:
Fyodor Kupolov
  • Method Summary

    Modifier and Type
    Method
    Description
    Opens a resource and returns a content reader.
     
  • Method Details

    • open

      Reader open() throws IOException
      Opens a resource and returns a content reader.

      The returned reader implementation should be effective enough to allow usage without extra buffering, etc.

      Returns:
      resource content reader
      Throws:
      IOException - if I/O error occurs.
    • toString

      String toString()
      Overrides:
      toString in class Object
      Returns:
      location of content or meaningful description.