Package org.codehaus.plexus.util
Class StringOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.codehaus.plexus.util.StringOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
@Deprecated public class StringOutputStream extends java.io.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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuffer
buf
Deprecated.
-
Constructor Summary
Constructors Constructor Description StringOutputStream()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
toString()
Deprecated.void
write(byte[] b)
Deprecated.void
write(byte[] b, int off, int len)
Deprecated.void
write(int b)
Deprecated.
-
-
-
Method Detail
-
write
public void write(byte[] b) throws java.io.IOException
Deprecated.- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
Deprecated.- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
Deprecated.- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-