Class DefaultExtensibilityContent

  • All Implemented Interfaces:
    ExtensibilityContent

    public class DefaultExtensibilityContent
    extends java.lang.Object
    implements ExtensibilityContent

    The default ExtensibilityContent implementation. This class basically wraps a StringBuilder and delegates to its append and flush methods

    Author:
    David Draper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Should be implemented to flush the content that has been constructed
      java.lang.String toString()  
      void write​(char[] cbuf)  
      void write​(char[] cbuf, int off, int len)
      Should be implemented to allow content to be appended
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultExtensibilityContent

        public DefaultExtensibilityContent()
    • Method Detail

      • write

        public void write​(char[] cbuf)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
                   throws java.io.IOException
        Description copied from interface: ExtensibilityContent

        Should be implemented to allow content to be appended

        Specified by:
        write in interface ExtensibilityContent
        Throws:
        java.io.IOException