[
https://issues.apache.org/jira/browse/IO-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14087061#comment-14087061
]
BELUGA BEHR commented on IO-454:
--------------------------------
Thanks for the input Bernd.
I would have used Long.MAX_VALUE, but I recently ran into this problem:
https://bugs.openjdk.java.net/browse/JDK-6720170
So Integer.MAX_VALUE is safer and probably suffices from a performance view.
{code}
public static void consumeAll(final InputStream is) throws IOException{
while (EOF != is.read(SKIP_BYTE_BUFFER));
}
{code}
> IOUtils.skipToEnd
> -----------------
>
> Key: IO-454
> URL: https://issues.apache.org/jira/browse/IO-454
> Project: Commons IO
> Issue Type: New Feature
> Components: Utilities
> Reporter: BELUGA BEHR
> Priority: Minor
>
> Hello,
> I'd like to see an IOUtils method that calls skip (or skip/read) on a stream
> until it returns -1.
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.2#6252)