|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
hussam.io.StringOutputStream
public class StringOutputStream
This is an output stream that prints to any StringAppendable.
| Constructor Summary | |
|---|---|
StringOutputStream(StringAppendable viewer)
Constructs a StringOutputStream that prints to a StringAppendable with a default of 1000 flushSize. |
|
StringOutputStream(StringAppendable viewer,
int flushSize)
Constructs a StringOutputStream that prints to a StringAppendable with a given flushSize |
|
| Method Summary | |
|---|---|
void |
close()
Closes this stream. |
void |
flush()
Flushes the stream. |
protected byte[] |
getArray()
returns an array containing all bytes in the stream which were not flushed yet. |
void |
write(int bytee)
Writes the given byte supplied as an int. |
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringOutputStream(StringAppendable viewer,
int flushSize)
public StringOutputStream(StringAppendable viewer)
| Method Detail |
|---|
public void write(int bytee)
write in class java.io.OutputStreampublic void close()
close in interface java.io.Closeableclose in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreamprotected byte[] getArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||