Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 032C9102C3 for ; Thu, 15 Jan 2015 13:51:45 +0000 (UTC) Received: (qmail 86014 invoked by uid 500); 15 Jan 2015 13:51:46 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 85863 invoked by uid 500); 15 Jan 2015 13:51:46 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Delivered-To: moderator for dev@commons.apache.org Received: (qmail 45624 invoked by uid 99); 14 Jan 2015 18:21:34 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of danbress@gmail.com designates 209.85.216.54 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=AQpxxCBIhXSIuUpJXD+AuC/1iW/cnABt+W10wPL8yCY=; b=dRPP83kOsMlCtvxu3YYVxs07WEk3/ygebRqIIlrWEa7oBDIIERwjGHfIe3OtkAwSsA D0sHx/rrqJDkrqYp9W1lb2DE4WLSAsTgbUkkZa1qxmRWCxHRqIuoV6KIBROtRBZ91TXk 5WKWcd5UQR0ShDAYTNzWPy+IVYXxHf+bAO+hX7kju9zsS1mtHK+T2+eM528iva1BfG5u GKcQSjHF9gFaKe2B0ctKsAghSi2equhbmLZOS5/260LAKWkUURCiYFt2pTqY9HYZi7QQ 8i4mvYwTGtQcD0YgKISXOwZHZHe96c5lcnF9QZTeU1EfZ2oaOqduCA30gstm4kzRMHPv xTHg== MIME-Version: 1.0 X-Received: by 10.140.20.50 with SMTP id 47mr8568387qgi.61.1421259623286; Wed, 14 Jan 2015 10:20:23 -0800 (PST) Reply-To: danbress@gmail.com Date: Wed, 14 Jan 2015 13:20:23 -0500 Message-ID: Subject: Question about: IOUtils.skipFully(InputString,long) From: dan bress To: dev@commons.apache.org Content-Type: multipart/alternative; boundary=001a11c13c82face97050ca0cad0 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c13c82face97050ca0cad0 Content-Type: text/plain; charset=UTF-8 Commons IO developers, I am trying to use IOUtils.skipFully(InputStream, long) to skip a number of bytes on my input stream. Why does this method call read() on the InputStream, rather than skip()? In my case, the implementation of my InputStream does have performance benefits of calling skip() rather than read(). Thanks, Dan --001a11c13c82face97050ca0cad0--