The javadoc for IOUtils.copy says:
"Large streams (over 2GB) will return a bytes copied value of -1 after the copy has completed since the correct number of bytes cannot be returned as an int."
but then it says:
ArithmeticException - if the byte count is too large"
This is an inconsistency since -1 is always returned if the byte count is too large. ArithmeticException is never actually thrown.
IO-84 for discussion on solving the "too large byte count" problem.
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|50d 17h 4m||1||Sebb||07/Jan/10 02:37|
|195d 14h 23m||1||Henri Yandell||21/Jul/10 18:00|
|Fix Version/s||2.0 [ 12312961 ]|
|Workflow||jira [ 12482268 ]||Default workflow, editable Closed status [ 12601734 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|