[ https://issues.apache.org/jira/browse/IO-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved IO-203. --------------------- Resolution: Fixed Implemented guaranteed skip() methods. URL: http://svn.apache.org/viewvc?rev=920483&view=rev Log: IO-203 - Add skipFully() method for InputStreams Implement our own skip() methods; rewrite skipFully() to use them Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java commons/proper/io/trunk/src/test/org/apache/commons/io/IOUtilsTestCase.java > Add skipFully() method for InputStreams > --------------------------------------- > > Key: IO-203 > URL: https://issues.apache.org/jira/browse/IO-203 > Project: Commons IO > Issue Type: New Feature > Components: Utilities > Reporter: Sebb > Fix For: 2.0 > > > The skip() method is not guaranteed to skip the requested number of bytes, > even if there is more data available. This is particularly true of Buffered > input streams. > It would be useful to have a skip() method that keeps skipping until the > required number of bytes have been read, or EOF was reached, in which case it > should throw an Exception. > [I'll add a patch later.] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.