`[all packages] [package ] [class hierarchy] [index]`

# public class PrinterStringBuffer

(source file: PrinterStringBuffer.java)

    java.lang.Object
       |
       +----Printer
               |
               +----PrinterStringBuffer

The pure class interface.

    public class PrinterStringBuffer
      extends Printer

  An implementation of the `Printer` class which sends all output to a string buffer.

  Author:
    Alan Jeffrey
  Version: v1.0 1998/06/02

##

PrinterStringBuffer()
  Create a new printer which stores the output.

##

printRawString(String)
  Append a string to the buffer.
toString()
  Convert the string buffer back to a string. @result the contents of the string buffer.

##

PrinterStringBuffer

    public PrinterStringBuffer();

  Create a new printer which stores the output.

##

printRawString

    public void printRawString(String s);

  Append a string to the buffer.

  Parameters:
    s - the string to append.
  Overrides:
    printRawString in class Printer

toString

    public String toString();

  Convert the string buffer back to a string. @result the contents of the string buffer.

  Overrides:
    toString in class Object

`[all packages] [package ] [class hierarchy] [index]`

###### PrinterStringBuffer.html