SmartFrog 3.10.000

org.smartfrog.services.display
Class TextAreaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.smartfrog.services.display.TextAreaOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class TextAreaOutputStream
extends java.io.OutputStream

Extends OutputStream to output to Text Area.


Constructor Summary
TextAreaOutputStream(java.lang.Object jta)
          Constructs TextAreaOutputStream with jtext area.
 
Method Summary
static TextAreaOutputStream getStaticOutput()
          Gets a single instance accesible jtext area
static void setStaticOutput(java.lang.Object jta)
          Sets a single instance of jtext area accesible via static methods
 void write(byte[] b)
          Writes a byte array to the text area as a stream
 void write(byte[] buf, int off, int len)
          Writes a byte subarray to the text area as a stream
 void write(int b)
          Writes an integer to the text area as a stream
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaOutputStream

public TextAreaOutputStream(java.lang.Object jta)
Constructs TextAreaOutputStream with jtext area.

Parameters:
jta - jtext area
Method Detail

setStaticOutput

public static void setStaticOutput(java.lang.Object jta)
Sets a single instance of jtext area accesible via static methods

Parameters:
jta - The new staticOutput value of jtext area

getStaticOutput

public static TextAreaOutputStream getStaticOutput()
Gets a single instance accesible jtext area

Returns:
The staticOutput value

write

public void write(byte[] buf,
                  int off,
                  int len)
Writes a byte subarray to the text area as a stream

Overrides:
write in class java.io.OutputStream
Parameters:
buf - byte array to be written
off - offset
len - length

write

public void write(byte[] b)
Writes a byte array to the text area as a stream

Overrides:
write in class java.io.OutputStream
Parameters:
b - byte array

write

public void write(int b)
Writes an integer to the text area as a stream

Specified by:
write in class java.io.OutputStream
Parameters:
b - integer

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP