commandbox.system.util

Class PrintBuffer

lucee.Component
    extended by commandbox.system.util.Print
      extended by commandbox.system.util.PrintBuffer

Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I am a helper object that wraps the print helper. Instead of returning text, I accumulate it in a variable that can be retreived at the end.

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • author : Brad Wood, Luis Majano, Denny Valliant
  •  
    Property Summary
    type property default serializable required
    any objectID


    • access = public
    • returntype = any
    true false
    any result
          Result buffer.

    • access = public
    • returntype = any
    true false
    any shell


    • access = public
    • returntype = any
    • inject = shell
    true false
    Constructor Summary
    init()
    Method Summary
    any clear()
    string getObjectID()
    any getResult()
    string getShell()
    any onMissingMethod([any missingMethodName], [any missingMethodArguments])
    any setObjectID(any objectID)
    any setResult(any result)
    any setShell(any shell)
    any toConsole()
     
    Methods inherited from class commandbox.system.util.Print
    get256Color, getANSIAttribute, indent, unansi
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    objectID

    property any objectID

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    result

    property any result

    Result buffer

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    shell

    property any shell

    Attributes:
    access - public
    required - false
    returntype - any
    inject - shell
    serializable - true

    Method Detail

    clear

    public any clear()


    getObjectID

    public string getObjectID()


    getResult

    public any getResult()


    getShell

    public string getShell()


    onMissingMethod

    public any onMissingMethod([any missingMethodName], [any missingMethodArguments])

    Overrides:
    onMissingMethod in class Print
    Parameters:
    missingMethodName
    missingMethodArguments

    setObjectID

    public any setObjectID(any objectID)

    Parameters:
    objectID

    setResult

    public any setResult(any result)

    Parameters:
    result

    setShell

    public any setShell(any shell)

    Parameters:
    shell

    toConsole

    public any toConsole()