Interface ExtensibilityContent

  • All Known Implementing Classes:
    DefaultExtensibilityContent

    public interface ExtensibilityContent

    Defines an object that can be have character strings appended to it and flushed. At its most basic level a ExtensibilityContent could just be a StringBuilder but it is provided to allow ContentModelElements the capability to accept character strings that are then manipulated before being flushed.

    This interface has primarily been introduced to support the capability of building up merged JSON strings which can then be output as a single JavaScript command

    Author:
    David Draper
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void flush()
      Should be implemented to flush the content that has been constructed
      void write​(char[] cbuf, int off, int len)
      Should be implemented to allow content to be appended
    • Method Detail

      • write

        void write​(char[] cbuf,
                   int off,
                   int len)
            throws java.io.IOException

        Should be implemented to allow content to be appended

        Throws:
        java.io.IOException
      • flush

        void flush()

        Should be implemented to flush the content that has been constructed