jodd-core/src/main/java/jodd/io/StreamUtil.java
public static FastByteArrayOutputStream copyToOutputStream(final Reader input, final String encoding, final int count) throws IOException {
		try (FastByteArrayOutputStream output = createFastByteArrayOutputStream()) {
			copy(input, output, encoding, count);
			return output;
		}
	}
public static FastByteArrayOutputStream copyToOutputStream(final Reader input, final String encoding, final int count) throws IOException {
		try (FastByteArrayOutputStream output = createFastByteArrayOutputStream()) {
			copy(input, output, encoding, count);
			return output;
		}
	}
public static FastByteArrayOutputStream copyToOutputStream ( final Reader input , final String encoding , final int count ) throws IOException { try ( FastByteArrayOutputStream output = createFastByteArrayOutputStream ( ) ) { copy ( input , output , encoding , count ) ; return output ; } }
Copies {@link Reader} to a new {@link FastByteArrayOutputStream} using buffer and specified encoding.

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