Class StringOutputStream

A class to write to a buffer. Similar to StringWriter. Thread-safe.

Synopsis

 public final class StringOutputStream extends OutputStream {
  public StringOutputStream();
  public void write(int b);
  public String toString();
}

Methods inherited from java.io.OutputStream: close, flush, write

Methods inherited from java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Inheritance Path. java.lang.Object-> java.io.OutputStream-> org.kaiwitte.workbench.ui.model.StringOutputStream

StringOutputStream()

Synopsis: public StringOutputStream();

Creates a new instance.

toString()

Synopsis: public String toString();

Parameters

return

the collected data

Returns the collected data.

write(int)

Synopsis: public void write(int b);

Parameters

b

the byte.

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.