Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 56173 invoked from network); 22 Dec 2001 13:01:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Dec 2001 13:01:08 -0000 Received: (qmail 26226 invoked by uid 97); 22 Dec 2001 13:01:04 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 26197 invoked by uid 97); 22 Dec 2001 13:01:02 -0000 Mailing-List: contact ant-dev-help@jakarta.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 ant-dev@jakarta.apache.org Received: (qmail 26183 invoked by uid 97); 22 Dec 2001 13:00:59 -0000 Date: 22 Dec 2001 13:00:57 -0000 Message-ID: <20011222130057.82319.qmail@icarus.apache.org> From: donaldp@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec StreamPumper.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N donaldp 01/12/22 05:00:57 Modified: proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec StreamPumper.java Log: Cleaned up file a bit and made it package access. Revision Changes Path 1.2 +10 -8 jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/StreamPumper.java Index: StreamPumper.java =================================================================== RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/StreamPumper.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- StreamPumper.java 2001/12/17 09:49:30 1.1 +++ StreamPumper.java 2001/12/22 13:00:57 1.2 @@ -16,7 +16,8 @@ * * @author thomas.haas@softwired-inc.com */ -public class StreamPumper implements Runnable +class StreamPumper + implements Runnable { // TODO: make SIZE and SLEEP instance variables. @@ -24,8 +25,8 @@ private final static int SLEEP = 5; private final static int SIZE = 128; - private InputStream is; - private OutputStream os; + private InputStream m_input; + private OutputStream m_output; /** * Create a new stream pumper. @@ -33,10 +34,11 @@ * @param is input stream to read data from * @param os output stream to write data to. */ - public StreamPumper( InputStream is, OutputStream os ) + public StreamPumper( final InputStream input, + final OutputStream output ) { - this.is = is; - this.os = os; + m_input = input; + m_output = output; } /** @@ -50,9 +52,9 @@ int length; try { - while( ( length = is.read( buf ) ) > 0 ) + while( ( length = m_input.read( buf ) ) > 0 ) { - os.write( buf, 0, length ); + m_output.write( buf, 0, length ); try { Thread.sleep( SLEEP ); -- To unsubscribe, e-mail: For additional commands, e-mail: