org.codehaus.plexus.util
Class StringOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.codehaus.plexus.util.StringOutputStream

public class StringOutputStream
extends java.io.OutputStream

Wraps a String as an OutputStream.

Author:
Emmanuel Venisse

Field Summary
private  java.lang.StringBuffer buf
           
 
Constructor Summary
StringOutputStream()
           
 
Method Summary
 java.lang.String toString()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buf

private java.lang.StringBuffer buf
Constructor Detail

StringOutputStream

public StringOutputStream()
Method Detail

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()