[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Commented] (IO-454) IOUtils.skipToEnd
From:       Julien_Aymé_(JIRA) <jira () apache ! org>
Date:       2014-07-31 11:16:38
Message-ID: JIRA.12730980.1406773494596.85506.1406805398981 () arcas
[Download RAW message or body]


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

Julien Aymé commented on IO-454:
--------------------------------

Note that this is already feasible, by using IOUtils.copy and NullOuputStream:
{code}
InputStream in = ...
try {
    IOUtils.copy(in, new NullOutputStream());
} finally {
    in.close();
}
{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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic