commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-203) Add skipFully() method for InputStreams
Date Sun, 07 Mar 2010 21:00:27 GMT

     [ https://issues.apache.org/jira/browse/IO-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated IO-203:
--------------------

    Comment: was deleted

(was: Note that Reader.skip(n) and InputStream.skip(n) behave differently according to the
Javadoc.

Reader.skip(n) throws IllegalArgumentException for n < 0, whereas InputStread.skip(n) does
nothing.
)

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


Mime
View raw message