org.openbp.common.string
Class StringBufferOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.openbp.common.string.StringBufferOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class StringBufferOutputStream
extends java.io.OutputStream

A string buffer-based output stream.

Author:
Andreas Putz

Constructor Summary
StringBufferOutputStream(java.lang.StringBuffer buf)
          Constructor.
 
Method Summary
 void write(int b)
          see java.io.OutputStream#write(int)
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferOutputStream

public StringBufferOutputStream(java.lang.StringBuffer buf)
Constructor.

Parameters:
buf - String buffer
Method Detail

write

public void write(int b)
           throws java.io.IOException
see java.io.OutputStream#write(int)

Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.