org.codehaus.plexus.util

Class StringOutputStream

public class StringOutputStream extends OutputStream

Deprecated: As of version 1.5.2 this class should no longer be used because it does not properly handle character encoding. Instead, use java.io.ByteArrayOutputStream#toString(String).

Wraps a String as an OutputStream.

Version: $Id: StringOutputStream.java 8010 2009-01-07 12:59:50Z vsiveton $

Author: Emmanuel Venisse

Method Summary
StringtoString()
voidwrite(byte[] b)
voidwrite(byte[] b, int off, int len)
voidwrite(int b)

Method Detail

toString

public String toString()

write

public void write(byte[] b)

write

public void write(byte[] b, int off, int len)

write

public void write(int b)
Copyright © 2001-2010 Codehaus. All Rights Reserved.