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
Deprecated. As of version 1.5.2 this class should no longer be used because it does not properly handle character
encoding. Instead, use ByteArrayOutputStream.toString(String)
.
public class StringOutputStream
- extends java.io.OutputStream
Wraps a String as an OutputStream.
- Version:
- $Id: StringOutputStream.java 7325 2008-05-02 11:15:34Z vsiveton $
- Author:
- Emmanuel Venisse
Method Summary |
java.lang.String |
toString()
Deprecated. |
void |
write(byte[] b)
Deprecated. |
void |
write(byte[] b,
int off,
int len)
Deprecated. |
void |
write(int b)
Deprecated. |
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 |
StringOutputStream
public StringOutputStream()
- Deprecated.
write
public void write(byte[] b)
throws java.io.IOException
- Deprecated.
- 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
- Deprecated.
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Deprecated.
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Deprecated.
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2008 Codehaus. All Rights Reserved.