[ 
https://issues.apache.org/jira/browse/IO-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14087052#comment-14087052
 ] 

Bernd Eckenfels commented on IO-454:
------------------------------------

Be carefull, some streams do not very well handle skip(). For example 
([JDK-6587699|https://bugs.openjdk.java.net/browse/JDK-6587699]) 
DigestInputStream does not properly feed skipped bytes to the digester. So both 
options (skipToEnd() and consumeAll()) should be available (or none). 

> 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)

Reply via email to