mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 04:15:04 +00:00
7193710: ByteArrayOutputStream Javadoc contains unclosed <code> element
Reviewed-by: dholmes, alanb, ulfzibis
This commit is contained in:
parent
a04e185cd1
commit
be8df60f79
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -210,21 +210,21 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
|
||||
/**
|
||||
* Converts the buffer's contents into a string by decoding the bytes using
|
||||
* the specified {@link java.nio.charset.Charset charsetName}. The length of
|
||||
* the new <tt>String</tt> is a function of the charset, and hence may not be
|
||||
* equal to the length of the byte array.
|
||||
* the named {@link java.nio.charset.Charset charset}. The length of the new
|
||||
* <tt>String</tt> is a function of the charset, and hence may not be equal
|
||||
* to the length of the byte array.
|
||||
*
|
||||
* <p> This method always replaces malformed-input and unmappable-character
|
||||
* sequences with this charset's default replacement string. The {@link
|
||||
* java.nio.charset.CharsetDecoder} class should be used when more control
|
||||
* over the decoding process is required.
|
||||
*
|
||||
* @param charsetName the name of a supported
|
||||
* {@linkplain java.nio.charset.Charset </code>charset<code>}
|
||||
* @return String decoded from the buffer's contents.
|
||||
* @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
|
||||
* @since JDK1.1
|
||||
*/
|
||||
public synchronized String toString(String charsetName)
|
||||
throws UnsupportedEncodingException
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -86,7 +86,7 @@ public class InputStreamReader extends Reader {
|
||||
*
|
||||
* @param charsetName
|
||||
* The name of a supported
|
||||
* {@link java.nio.charset.Charset </code>charset<code>}
|
||||
* {@link java.nio.charset.Charset charset}
|
||||
*
|
||||
* @exception UnsupportedEncodingException
|
||||
* If the named charset is not supported
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user