Class ConsoleReader
java.lang.Object
java.io.Reader
org.patrodyne.jvnet.basicjaxb.explore.ConsoleReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
This class extends from Reader to redirect input from a JTextArea.
EXPERIMENTAL
- Author:
- Rick O'Sulllivan
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the text area document.voidclose()voidIncrease text font (float) size.intread(char[] cbuf, int off, int len) voidsetPipedReader(PipedReader pipedReader) voidsetPipedWriter(PipedWriter pipedWriter) voidDecrease text font (float) size.Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
ConsoleReader
Construct with built-in, editable JTextArea.- Parameters:
points- The font size.- Throws:
IOException
-
-
Method Details
-
getPipedWriter
-
setPipedWriter
-
getPipedReader
-
setPipedReader
-
getTextArea
-
largerText
public void largerText()Increase text font (float) size. -
smallerText
public void smallerText()Decrease text font (float) size. -
read
- Specified by:
readin classReader- Throws:
IOException
-
clear
public void clear()Clear the text area document. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-