| 
 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.rups.view.Console
public class Console
A Class that redirects everything written to System.out and System.err to a JTextPane.
| Nested Class Summary | |
|---|---|
(package private)  class | 
Console.ConsoleStyleContext
The style context defining the styles of each type of PrintStream.  | 
(package private)  class | 
Console.ReadWriteThread
The thread that will write everything to the text area.  | 
| Field Summary | |
|---|---|
private static Console | 
console
Single Console instance.  | 
(package private)  PipedInputStream | 
piCustom
Custom InputStream.  | 
(package private)  PipedInputStream | 
piErr
InputStream for System.err.  | 
(package private)  PipedInputStream | 
piOut
InputStream for System.out.  | 
(package private)  PipedOutputStream | 
poCustom
Custom OutputStream.  | 
(package private)  PipedOutputStream | 
poErr
OutputStream for System.err.  | 
(package private)  PipedOutputStream | 
poOut
OutputStream for System.out.  | 
(package private)  PrintStream | 
printStream
Custom PrintStream.  | 
(package private)  Console.ConsoleStyleContext | 
styleContext
The StyleContext for the Console.  | 
(package private)  JTextPane | 
textArea
The text area to which everything is written.  | 
| Constructor Summary | |
|---|---|
private  | 
Console()
Creates a new Console object.  | 
| Method Summary | |
|---|---|
static Console | 
getInstance()
Console is a Singleton class: you can only get one Console.  | 
 PrintStream | 
getPrintStream()
Get the custom PrintStream of the console.  | 
 JTextPane | 
getTextArea()
Get the JTextArea to which everything is written.  | 
static void | 
println(String s)
Allows you to print something to the custom PrintStream.  | 
 void | 
update(Observable observable,
       Object obj)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static Console console
PrintStream printStream
PipedOutputStream poCustom
PipedInputStream piCustom
PipedOutputStream poOut
PipedInputStream piOut
PipedOutputStream poErr
PipedInputStream piErr
Console.ConsoleStyleContext styleContext
JTextPane textArea
| Constructor Detail | 
|---|
private Console()
         throws IOException
IOException| Method Detail | 
|---|
public static Console getInstance()
public void update(Observable observable,
                   Object obj)
update in interface ObserverObserver.update(java.util.Observable, java.lang.Object)public static void println(String s)
s - the message you want to send to the Consolepublic PrintStream getPrintStream()
public JTextPane getTextArea()
  | 
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||