org.apache.geronimo.mail.util
Class StringBufferOutputStream
java.lang.Object
java.io.OutputStream
org.apache.geronimo.mail.util.StringBufferOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class StringBufferOutputStream
- extends OutputStream
An implementation of an OutputStream that writes the data directly
out to a StringBuffer object. Useful for applications where an
intermediate ByteArrayOutputStream is required to append generated
characters to a StringBuffer;
Method Summary |
void |
write(int ch)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected StringBuffer buffer
StringBufferOutputStream
public StringBufferOutputStream(StringBuffer out)
- Create an output stream that writes to the target StringBuffer
- Parameters:
out
- The wrapped output stream.
write
public void write(int ch)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.