Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 11741 invoked from network); 11 Mar 2005 11:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 11:10:56 -0000 Received: (qmail 16342 invoked by uid 500); 11 Mar 2005 11:10:53 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 16284 invoked by uid 500); 11 Mar 2005 11:10:52 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 16270 invoked by uid 500); 11 Mar 2005 11:10:52 -0000 Received: (qmail 16264 invoked by uid 99); 11 Mar 2005 11:10:51 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 11 Mar 2005 03:10:51 -0800 Received: (qmail 11680 invoked by uid 1539); 11 Mar 2005 11:10:50 -0000 Date: 11 Mar 2005 11:10:50 -0000 Message-ID: <20050311111050.11679.qmail@minotaur.apache.org> From: peterreilly@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant DemuxInputStream.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N peterreilly 2005/03/11 03:10:50 Modified: src/main/org/apache/tools/ant DemuxInputStream.java Log: javadoc Revision Changes Path 1.12 +14 -1 ant/src/main/org/apache/tools/ant/DemuxInputStream.java Index: DemuxInputStream.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/DemuxInputStream.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- DemuxInputStream.java 2 Sep 2004 16:51:33 -0000 1.11 +++ DemuxInputStream.java 11 Mar 2005 11:10:50 -0000 1.12 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 The Apache Software Foundation + * Copyright 2003-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,11 @@ this.project = project; } + /** + * Read a byte from the project's demuxed input. + * @return the next byte + * @throws IOException on error + */ public int read() throws IOException { byte[] buffer = new byte[1]; if (project.demuxInput(buffer, 0, 1) == -1) { @@ -52,6 +57,14 @@ } + /** + * Read bytes from the project's demuxed input. + * @param buffer an array of bytes to read into + * @param offset the offset in the array of bytes + * @param length the number of bytes in the array + * @return the number of bytes read + * @throws IOException on error + */ public int read(byte[] buffer, int offset, int length) throws IOException { return project.demuxInput(buffer, offset, length); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org