coldbox.system.core.util

Class RequestBuffer

railo-context.Component
        extended by coldbox.system.core.util.RequestBuffer
Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    A buffer object that lives in the request scope. It switches its implementation depending on the JDK its running on.

    Constructor Summary
    init()
          Constructor.
    Method Summary
    void append(string str)
         Append to the buffer.
    void clear()
         Clear the buffer.
    any getBufferObject()
         Get the raw buffer object.
    any getString()
         Get the string representation of the buffer.
    boolean isBufferInScope()
         Checks if the buffer has been created or not.
    numeric length()
         Returns the length (character count).
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Method Detail

    append

    public void append(string str)

    Append to the buffer.

    Parameters:
    str - The string to append

    clear

    public void clear()

    Clear the buffer


    getBufferObject

    public any getBufferObject()

    Get the raw buffer object


    getString

    public any getString()

    Get the string representation of the buffer


    isBufferInScope

    public boolean isBufferInScope()

    Checks if the buffer has been created or not


    length

    public numeric length()

    Returns the length (character count)