Package org.codehaus.plexus.util
Class StringOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.codehaus.plexus.util.StringOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@Deprecated 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, useByteArrayOutputStream.toString(String).Wraps a String as an OutputStream.- Author:
- Emmanuel Venisse
-
-
Constructor Summary
Constructors Constructor Description StringOutputStream()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringtoString()Deprecated.voidwrite(byte[] b)Deprecated.voidwrite(byte[] b, int off, int len)Deprecated.voidwrite(int b)Deprecated.-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
write
public void write(byte[] b) throws IOExceptionDeprecated.- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOExceptionDeprecated.- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOExceptionDeprecated.- Specified by:
writein classOutputStream- Throws:
IOException
-
-