@@ -1418,7 +1418,7 @@ public static int length(final Object[] array) {
14181418 * @param charset the charset to use, null means platform default
14191419 * @return an Iterator of the lines in the reader, never null
14201420 * @throws IllegalArgumentException if the input is null
1421- * @throws IOException if an I/O error occurs, such as if the encoding is invalid
1421+ * @throws IOException not actually thrown
14221422 * @since 2.3
14231423 */
14241424 public static LineIterator lineIterator (final InputStream input , final Charset charset ) throws IOException {
@@ -2369,7 +2369,7 @@ public static byte[] toByteArray(final Reader input, final String charsetName) t
23692369 * @param input the <code>String</code> to convert
23702370 * @return the requested byte array
23712371 * @throws NullPointerException if the input is null
2372- * @throws IOException if an I/O error occurs (never occurs)
2372+ * @throws IOException not actually thrown
23732373 * @deprecated 2.5 Use {@link String#getBytes()} instead
23742374 */
23752375 @ Deprecated
@@ -2543,7 +2543,7 @@ public static InputStream toInputStream(final CharSequence input, final Charset
25432543 * @param input the CharSequence to convert
25442544 * @param charsetName the name of the requested charset, null means platform default
25452545 * @return an input stream
2546- * @throws IOException if the encoding is invalid
2546+ * @throws IOException not actually thrown
25472547 * @throws java.nio.charset.UnsupportedCharsetException thrown instead of {@link java.io
25482548 * .UnsupportedEncodingException} in version 2.2 if the
25492549 * encoding is not supported.
@@ -2590,7 +2590,7 @@ public static InputStream toInputStream(final String input, final Charset charse
25902590 * @param input the string to convert
25912591 * @param charsetName the name of the requested charset, null means platform default
25922592 * @return an input stream
2593- * @throws IOException if the encoding is invalid
2593+ * @throws IOException not actually thrown
25942594 * @throws java.nio.charset.UnsupportedCharsetException thrown instead of {@link java.io
25952595 * .UnsupportedEncodingException} in version 2.2 if the
25962596 * encoding is not supported.
@@ -2608,7 +2608,7 @@ public static InputStream toInputStream(final String input, final String charset
26082608 * @param input the byte array to read from
26092609 * @return the requested String
26102610 * @throws NullPointerException if the input is null
2611- * @throws IOException if an I/O error occurs (never occurs)
2611+ * @throws IOException not actually thrown
26122612 * @deprecated 2.5 Use {@link String#String(byte[])} instead
26132613 */
26142614 @ Deprecated
@@ -2628,7 +2628,7 @@ public static String toString(final byte[] input) throws IOException {
26282628 * @param charsetName the name of the requested charset, null means platform default
26292629 * @return the requested String
26302630 * @throws NullPointerException if the input is null
2631- * @throws IOException if an I/O error occurs (never occurs)
2631+ * @throws IOException not actually thrown
26322632 */
26332633 public static String toString (final byte [] input , final String charsetName ) throws IOException {
26342634 return new String (input , Charsets .toCharset (charsetName ));
0 commit comments