Class ContentEl

All Implemented Interfaces:
XmlConfigurable, Resource
Direct Known Subclasses:
FallbackEl

public class ContentEl extends XmlConfigurableBase implements Resource
TODO: Add documentation
Version:
1.0
Author:
Fyodor Kupolov
  • Field Details

    • NULL_CONTENT

      public static final Resource NULL_CONTENT
      Null-Object to use instead of null if necessary
  • Constructor Details

    • ContentEl

      public ContentEl()
    • ContentEl

      public ContentEl(XmlElement element)
  • Method Details

    • open

      public Reader open() throws IOException
      Description copied from interface: Resource
      Opens a resource and returns a content reader.

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

      Specified by:
      open in interface Resource
      Returns:
      resource content reader
      Throws:
      IOException - if I/O error occurs.
    • configure

      public void configure(XmlElement element)
      Description copied from interface: XmlConfigurable
      Configures the class using specified XML element.
      Specified by:
      configure in interface XmlConfigurable
      Parameters:
      element - XML element.
    • getResources

      public List<Resource> getResources()
      Returns resources represented by this content.
      Returns:
      list of resources represented by this content.
    • toString

      public String toString()
      Specified by:
      toString in interface Resource
      Overrides:
      toString in class Object
      Returns:
      location of content or meaningful description.