@throws arithmeticexception if the byte count is too large
file : https_github_com_apache_commons-io_git/src/main/java/org/apache/commons/io/output/CountingOutputStream.java
file : https_github_com_apache_commons-io_git/src/main/java/org/apache/commons/io/input/CountingInputStream.java