Package ghidra.app.script

# Class DecoratingPrintWriter

java.lang.Object
java.io.Writer
java.io.PrintWriter
ghidra.app.script.DecoratingPrintWriter

All Implemented Interfaces:
  `Closeable`, `Flushable`, `Appendable`, `AutoCloseable`

public abstract class DecoratingPrintWriter extends PrintWriter
A print writer that allows clients to specify the text color.

- ## Field Summary

  ### Fields inherited from class java.io.PrintWriter

  `out`

  ### Fields inherited from class java.io.Writer

  `lock`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DecoratingPrintWriter(Writer out)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract void`
  `print(String s, Color c)`
  Print text with the given color.
  `abstract void`
  `println(String s, Color c)`
  Print a line of text with the given color.

  ### Methods inherited from class java.io.PrintWriter

  `append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write`

  ### Methods inherited from class java.io.Writer

  `nullWriter`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DecoratingPrintWriter

    public DecoratingPrintWriter(Writer out)

- ## Method Details

  - ### println

    public abstract void println(String s, Color c)
    Print a line of text with the given color.
    Parameters:
      `s` - the text
      `c` - the color

  - ### print

    public abstract void print(String s, Color c)
    Print text with the given color.
    Parameters:
      `s` - the text
      `c` - the color