org.codehaus.plexus.util
Class StringOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.codehaus.plexus.util.StringOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class StringOutputStream
extends java.io.OutputStream

Wraps a String as an OutputStream.

Version:
$Id: StringOutputStream.java 5958 2007-02-28 10:29:55Z olamy $
Author:
Emmanuel Venisse

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
 

Constructor Detail

StringOutputStream

public StringOutputStream()
Method Detail

write

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

write

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

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2007 Codehaus. All Rights Reserved.