You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/03/06 13:56:27 UTC

[jira] Commented: (IO-203) Add skipFully() method for InputStreams

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

Sebb commented on IO-203:
-------------------------

Started work on this.

I'll implement the following methods:

void skipFully(input, count) - keeps reading and throws EOFException if  end reached before count reached

long skip(input, count) - keeps reading, reports count actually read.

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