Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw.console
Class ConsoleStream  view ConsoleStream download ConsoleStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.PrintStream
              extended byorg.mitre.cvw.console.ConsoleStream

class ConsoleStream
extends java.io.PrintStream

Console stream implementation This class copies any stream input into the textArea passed in the constructor

Version:
1.0

Field Summary
private  javax.swing.JTextArea textArea
           
 
Fields inherited from class java.io.PrintStream
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ConsoleStream(java.io.OutputStream os, javax.swing.JTextArea textArea)
          Constructor
 
Method Summary
 void print(boolean b)
          This methods prints a boolean value to the stream.
 void print(char c)
          This method prints a char to the stream.
 void print(char[] c)
          This method prints an array of characters to the stream.
 void print(double d)
          This method prints a double to the stream.
 void print(float f)
          This method prints a float to the stream.
 void print(int i)
          This method prints an integer to the stream.
 void print(long l)
          This method prints a long to the stream.
 void print(java.lang.Object o)
          This method prints an Object to the stream.
 void print(java.lang.String s)
          This method prints a String to the stream.
 void println()
          This method prints a line separator sequence to the stream.
 void println(boolean b)
          This methods prints a boolean value to the stream.
 void println(char c)
          This method prints a char to the stream.
 void println(char[] c)
          This method prints an array of characters to the stream.
 void println(double d)
          This method prints a double to the stream.
 void println(float f)
          This method prints a float to the stream.
 void println(int i)
          This method prints an integer to the stream.
 void println(long l)
          This method prints a long to the stream.
 void println(java.lang.Object o)
          This method prints an Object to the stream.
 void println(java.lang.String s)
          This method prints a String to the stream.
 
Methods inherited from class java.io.PrintStream
checkError, close, flush, setError, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textArea

private javax.swing.JTextArea textArea
Constructor Detail

ConsoleStream

public ConsoleStream(java.io.OutputStream os,
                     javax.swing.JTextArea textArea)
Constructor

Method Detail

print

public void print(boolean b)
Description copied from class: java.io.PrintStream
This methods prints a boolean value to the stream. true values are printed as "true" and false values are printed as "false".


print

public void print(char c)
Description copied from class: java.io.PrintStream
This method prints a char to the stream. The actual value printed is determined by the character encoding in use.


print

public void print(char[] c)
Description copied from class: java.io.PrintStream
This method prints an array of characters to the stream. The actual value printed depends on the system default encoding.


print

public void print(double d)
Description copied from class: java.io.PrintStream
This method prints a double to the stream. The value printed is determined using the String.valueOf() method.


print

public void print(float f)
Description copied from class: java.io.PrintStream
This method prints a float to the stream. The value printed is determined using the String.valueOf() method.


print

public void print(int i)
Description copied from class: java.io.PrintStream
This method prints an integer to the stream. The value printed is determined using the String.valueOf() method.


print

public void print(long l)
Description copied from class: java.io.PrintStream
This method prints a long to the stream. The value printed is determined using the String.valueOf() method.


print

public void print(java.lang.Object o)
Description copied from class: java.io.PrintStream
This method prints an Object to the stream. The actual value printed is determined by calling the String.valueOf() method.


print

public void print(java.lang.String s)
Description copied from class: java.io.PrintStream
This method prints a String to the stream. The actual value printed depends on the system default encoding.


println

public void println()
Description copied from class: java.io.PrintStream
This method prints a line separator sequence to the stream. The value printed is determined by the system property line.separator and is not necessarily the Unix '\n' newline character.


println

public void println(boolean b)
Description copied from class: java.io.PrintStream
This methods prints a boolean value to the stream. true values are printed as "true" and false values are printed as "false".

This method prints a line termination sequence after printing the value.


println

public void println(char c)
Description copied from class: java.io.PrintStream
This method prints a char to the stream. The actual value printed is determined by the character encoding in use.

This method prints a line termination sequence after printing the value.


println

public void println(char[] c)
Description copied from class: java.io.PrintStream
This method prints an array of characters to the stream. The actual value printed depends on the system default encoding.

This method prints a line termination sequence after printing the value.


println

public void println(double d)
Description copied from class: java.io.PrintStream
This method prints a double to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.


println

public void println(float f)
Description copied from class: java.io.PrintStream
This method prints a float to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.


println

public void println(int i)
Description copied from class: java.io.PrintStream
This method prints an integer to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.


println

public void println(long l)
Description copied from class: java.io.PrintStream
This method prints a long to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.


println

public void println(java.lang.Object o)
Description copied from class: java.io.PrintStream
This method prints an Object to the stream. The actual value printed is determined by calling the String.valueOf() method.

This method prints a line termination sequence after printing the value.


println

public void println(java.lang.String s)
Description copied from class: java.io.PrintStream
This method prints a String to the stream. The actual value printed depends on the system default encoding.

This method prints a line termination sequence after printing the value.