psteitz     2004/06/14 16:54:17

  Modified:    math/src/java/org/apache/commons/math/random
                        EmpiricalDistributionImpl.java
  Log:
  Dropped load method taking string file path as argument.
  
  Revision  Changes    Path
  1.24      +1 -19     
jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
  
  Index: EmpiricalDistributionImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- EmpiricalDistributionImpl.java    14 Jun 2004 23:45:33 -0000      1.23
  +++ EmpiricalDistributionImpl.java    14 Jun 2004 23:54:17 -0000      1.24
  @@ -109,24 +109,6 @@
   
       }
   
  -    public void load(String filePath) throws IOException {
  -        BufferedReader in =
  -            new BufferedReader(new InputStreamReader(new 
FileInputStream(filePath)));
  -        try {
  -            DataAdapter da = new StreamDataAdapter(in);
  -            try {
  -                da.computeStats();
  -            } catch (Exception e) {
  -                throw new IOException(e.getMessage());
  -            }
  -            in = new BufferedReader(new InputStreamReader(new 
FileInputStream(filePath)));
  -            fillBinStats(in);
  -            loaded = true;
  -        } finally {
  -           if (in != null) try {in.close();} catch (Exception ex) {};
  -        }
  -    }
  -
       public void load(URL url) throws IOException {
           BufferedReader in =
               new BufferedReader(new InputStreamReader(url.openStream()));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to