|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.knowceans.util.StringOutputStream
public class StringOutputStream
stream output into a string builder. This is non-threadsafe
| Constructor Summary | |
|---|---|
StringOutputStream()
init with new string builder |
|
StringOutputStream(java.lang.StringBuilder sb)
init with provided string builder |
|
| Method Summary | |
|---|---|
java.lang.StringBuilder |
getBuffer()
get the underlying string buffer |
java.lang.String |
toString()
compile to string |
void |
write(int b)
write byte to the string buffer |
| Methods inherited from class java.io.OutputStream |
|---|
close, flush, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringOutputStream()
public StringOutputStream(java.lang.StringBuilder sb)
| Method Detail |
|---|
public void write(int b)
write in class java.io.OutputStreampublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.StringBuilder getBuffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||