@@ -292,6 +292,7 @@ public static byte[] toByteArray(Reader input, String encoding)
292292 * @throws IOException if an I/O error occurs (never occurs)
293293 * @deprecated Use {@link String#getBytes()}
294294 */
295+ @ Deprecated
295296 public static byte [] toByteArray (String input ) throws IOException {
296297 return input .getBytes ();
297298 }
@@ -429,6 +430,7 @@ public static String toString(Reader input) throws IOException {
429430 * @throws IOException if an I/O error occurs (never occurs)
430431 * @deprecated Use {@link String#String(byte[])}
431432 */
433+ @ Deprecated
432434 public static String toString (byte [] input ) throws IOException {
433435 return new String (input );
434436 }
@@ -447,6 +449,7 @@ public static String toString(byte[] input) throws IOException {
447449 * @throws IOException if an I/O error occurs (never occurs)
448450 * @deprecated Use {@link String#String(byte[],String)}
449451 */
452+ @ Deprecated
450453 public static String toString (byte [] input , String encoding )
451454 throws IOException {
452455 if (encoding == null ) {
@@ -933,6 +936,7 @@ public static void write(String data, OutputStream output, String encoding)
933936 * @since Commons IO 1.1
934937 * @deprecated replaced by write(CharSequence, Writer)
935938 */
939+ @ Deprecated
936940 public static void write (StringBuffer data , Writer output )
937941 throws IOException {
938942 if (data != null ) {
@@ -954,6 +958,7 @@ public static void write(StringBuffer data, Writer output)
954958 * @since Commons IO 1.1
955959 * @deprecated replaced by write(CharSequence, OutputStream)
956960 */
961+ @ Deprecated
957962 public static void write (StringBuffer data , OutputStream output )
958963 throws IOException {
959964 if (data != null ) {
@@ -978,6 +983,7 @@ public static void write(StringBuffer data, OutputStream output)
978983 * @since Commons IO 1.1
979984 * @deprecated replaced by write(CharSequence, OutputStream, String)
980985 */
986+ @ Deprecated
981987 public static void write (StringBuffer data , OutputStream output ,
982988 String encoding ) throws IOException {
983989 if (data != null ) {
0 commit comments