|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 encodingNameMethod Detail |
---|
public String encodingName()
public void reset()
public StringBuilder stringBuilder()
public void close()
close
in interface Closeable
close
in class OutputStream
public void flush() throws CharacterCodingException
flush
in interface Flushable
flush
in class OutputStream
CharacterCodingException
public void write(int b) throws CharacterCodingException
write
in class OutputStream
CharacterCodingException
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |