ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/input DefaultInputHandler.java
Date Wed, 26 Feb 2003 12:33:01 GMT
bodewig     2003/02/26 04:33:01

  Modified:    src/main/org/apache/tools/ant/input DefaultInputHandler.java
  Log:
  Avoid to read mor from System.in than necessary.
  
  PR: 17396
  
  Revision  Changes    Path
  1.5       +3 -5      ant/src/main/org/apache/tools/ant/input/DefaultInputHandler.java
  
  Index: DefaultInputHandler.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/input/DefaultInputHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultInputHandler.java	10 Feb 2003 14:13:33 -0000	1.4
  +++ DefaultInputHandler.java	26 Feb 2003 12:33:01 -0000	1.5
  @@ -54,10 +54,9 @@
   
   package org.apache.tools.ant.input;
   
  -import java.io.BufferedReader;
  +import java.io.DataInputStream;
   import java.io.IOException;
   import java.io.InputStream;
  -import java.io.InputStreamReader;
   import java.util.Enumeration;
   import org.apache.tools.ant.BuildException;
   
  @@ -82,8 +81,7 @@
        */
       public void handleInput(InputRequest request) throws BuildException {
           String prompt = getPrompt(request);
  -        BufferedReader in = 
  -            new BufferedReader(new InputStreamReader(getInputStream()));
  +        DataInputStream in = new DataInputStream(getInputStream());
           do {
               System.err.println(prompt);
               try {
  
  
  

Mime
View raw message