Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5252711D31 for ; Tue, 5 Aug 2014 01:31:12 +0000 (UTC) Received: (qmail 33883 invoked by uid 500); 5 Aug 2014 01:31:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33782 invoked by uid 500); 5 Aug 2014 01:31:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33770 invoked by uid 99); 5 Aug 2014 01:31:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 01:31:11 +0000 Date: Tue, 5 Aug 2014 01:31:11 +0000 (UTC) From: "BELUGA BEHR (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IO-454) IOUtils.skipToEnd MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IO-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085635#comment-14085635 ] BELUGA BEHR commented on IO-454: -------------------------------- {code} public static void skipToEnd(final InputStream is) throws IOException { while (0 != is.skip(Integer.MAX_VALUE)); while (EOF != is.read(SKIP_BYTE_BUFFER)); } {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)