src/share/classes/java/io/ByteArrayOutputStream.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:

*** 37,47 **** * Closing a <tt>ByteArrayOutputStream</tt> has no effect. The methods in * this class can be called after the stream has been closed without * generating an <tt>IOException</tt>. * * @author Arthur van Hoff ! * @since JDK1.0 */ public class ByteArrayOutputStream extends OutputStream { /** --- 37,47 ---- * Closing a <tt>ByteArrayOutputStream</tt> has no effect. The methods in * this class can be called after the stream has been closed without * generating an <tt>IOException</tt>. * * @author Arthur van Hoff ! * @since 1.0 */ public class ByteArrayOutputStream extends OutputStream { /**
*** 200,210 **** * default character set. The {@linkplain java.nio.charset.CharsetDecoder} * class should be used when more control over the decoding process is * required. * * @return String decoded from the buffer's contents. ! * @since JDK1.1 */ public synchronized String toString() { return new String(buf, 0, count); } --- 200,210 ---- * default character set. The {@linkplain java.nio.charset.CharsetDecoder} * class should be used when more control over the decoding process is * required. * * @return String decoded from the buffer's contents. ! * @since 1.1 */ public synchronized String toString() { return new String(buf, 0, count); }
*** 222,232 **** * @param charsetName the name of a supported * {@link java.nio.charset.Charset charset} * @return String decoded from the buffer's contents. * @exception UnsupportedEncodingException * If the named charset is not supported ! * @since JDK1.1 */ public synchronized String toString(String charsetName) throws UnsupportedEncodingException { return new String(buf, 0, count, charsetName); --- 222,232 ---- * @param charsetName the name of a supported * {@link java.nio.charset.Charset charset} * @return String decoded from the buffer's contents. * @exception UnsupportedEncodingException * If the named charset is not supported ! * @since 1.1 */ public synchronized String toString(String charsetName) throws UnsupportedEncodingException { return new String(buf, 0, count, charsetName);