* @since 2.3
*/
public static byte[] toByteArray(final Reader input, final Charset encoding) throws IOException {
final ByteArrayOutputStream output = new ByteArrayOutputStream();
copy(input, output, encoding);
return output.toByteArray();
}
/**
* Gets the contents of a <code>Reader</code> as a <code>byte[]</code>
* using the specified character encoding.