Class ConsoleReader

java.lang.Object
java.io.Reader
org.patrodyne.jvnet.basicjaxb.explore.ConsoleReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class ConsoleReader extends Reader
This class extends from Reader to redirect input from a JTextArea. EXPERIMENTAL
Author:
Rick O'Sulllivan
  • Constructor Details

    • ConsoleReader

      public ConsoleReader(int points) throws IOException
      Construct with built-in, editable JTextArea.
      Parameters:
      points - The font size.
      Throws:
      IOException
  • Method Details

    • getPipedWriter

      public PipedWriter getPipedWriter()
    • setPipedWriter

      public void setPipedWriter(PipedWriter pipedWriter)
    • getPipedReader

      public PipedReader getPipedReader()
    • setPipedReader

      public void setPipedReader(PipedReader pipedReader)
    • getTextArea

      public JTextArea getTextArea()
    • largerText

      public void largerText()
      Increase text font (float) size.
    • smallerText

      public void smallerText()
      Decrease text font (float) size.
    • read

      public int read(char[] cbuf, int off, int len) throws IOException
      Specified by:
      read in class Reader
      Throws:
      IOException
    • clear

      public void clear()
      Clear the text area document.
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Reader
      Throws:
      IOException