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

    Modifier and Type
    Method
    Description
    void
    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 Details

    • write

      void write(char[] cbuf, int off, int len) throws IOException

      Should be implemented to allow content to be appended

      Throws:
      IOException
    • flush

      void flush()

      Should be implemented to flush the content that has been constructed