jodd-core/src/main/java/jodd/io/StreamUtil.java
public static <T extends OutputStream> T copy(final Reader input, final T output, final String encoding, final int count) throws IOException {
		try (Writer out = outputStreamWriterOf(output, encoding)) {
			copy(input, out, count);
			return output;
		}
	}
public static <T extends OutputStream> T copy(final Reader input, final T output, final String encoding, final int count) throws IOException {
		try (Writer out = outputStreamWriterOf(output, encoding)) {
			copy(input, out, count);
			return output;
		}
	}
public static < T extends OutputStream > T copy ( final Reader input , final T output , final String encoding , final int count ) throws IOException { try ( Writer out = outputStreamWriterOf ( output , encoding ) ) { copy ( input , out , count ) ; return output ; } }
Copies {@link Reader} to {@link OutputStream} using buffer and specified encoding.

@see #copy(Reader, Writer, int)
Copies { @link Reader } to { @link OutputStream } using buffer and specified encoding .