| 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
StringOutputStream
public final class StringOutputStream
An output stream that writes to a string builder.
| Constructor Summary | |
|---|---|
StringOutputStream(StringBuilder stringBuilder,
                                     String encodingName)
Creates a StringOutputStream.  | 
|
| Method Summary | |
|---|---|
 void | 
close()
Does nothing.  | 
 String | 
encodingName()
Character encoding of this stream's bytes.  | 
 void | 
flush()
 | 
 void | 
reset()
Resets this stream, discarding any output in the string builder.  | 
 StringBuilder | 
stringBuilder()
Underlying string builder, into which output strings are written.  | 
 void | 
write(int b)
 | 
| 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(StringBuilder stringBuilder,
                          String encodingName)
stringBuilder - per stringBuilderencodingName - per encodingName| Method Detail | 
|---|
public String encodingName()
public void reset()
public StringBuilder stringBuilder()
public void close()
close in interface Closeableclose in class OutputStream
public void flush()
           throws CharacterCodingException
flush in interface Flushableflush in class OutputStreamCharacterCodingException
public void write(int b)
           throws CharacterCodingException
write in class OutputStreamCharacterCodingException
  | 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||