psteitz     2004/06/14 16:34:46

  Modified:    math/src/java/org/apache/commons/math/random
                        EmpiricalDistribution.java
                        EmpiricalDistributionImpl.java
  Log:
  Dropped load / save methods taking string file paths as arguments.
  
  Revision  Changes    Path
  1.19      +1 -27     
jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistribution.java
  
  Index: EmpiricalDistribution.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistribution.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- EmpiricalDistribution.java        14 Jun 2004 23:15:14 -0000      1.18
  +++ EmpiricalDistribution.java        14 Jun 2004 23:34:46 -0000      1.19
  @@ -56,13 +56,6 @@
   
       /**
        * Computes the empirical distribution from the input file.
  -     * @param filePath fully qualified name of a file in the local file system
  -     * @throws IOException if an IO error occurs
  -     */
  -    void load(String filePath) throws IOException;
  -
  -    /**
  -     * Computes the empirical distribution from the input file.
        * @param file the input file
        * @throws IOException if an IO error occurs
        */
  @@ -100,25 +93,6 @@
        * @throws IOException if an error occurs reading the file
        */
       void loadDistribution(File file) throws IOException;
  -
  -    /**
  -     * Loads a saved distribution from a file.
  -     * @param filePath fully qualified file path for a file
  -     * containing a digested distribution
  -     * @throws IOException if an error occurs reading the file
  -     */
  -    void loadDistribution(String filePath) throws IOException;
  -
  -    /**
  -     * Saves distribution to a file. Overwrites the file if it exists.
  -     * <strong>Preconditions:</strong><ul>
  -     * <li>the distribution must be loaded before invoking this method</li></ul>
  -     * @param filePath fully qualified file path for the file to be written
  -     * @throws IOException if an error occurs reading the file
  -     * @throws IllegalStateException if the distribution has not been loaded
  -     */
  -    void saveDistribution(String filePath) throws
  -        IOException,IllegalStateException;
   
       /**
        * Saves distribution to a file. Overwrites the file if it exists.
  
  
  
  1.22      +1 -10     
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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- EmpiricalDistributionImpl.java    14 Jun 2004 23:15:14 -0000      1.21
  +++ EmpiricalDistributionImpl.java    14 Jun 2004 23:34:46 -0000      1.22
  @@ -351,17 +351,8 @@
           throw new RuntimeException("No bin selected");
       }
   
  -    public void loadDistribution(String filePath) throws IOException {
  -        throw new UnsupportedOperationException("Not Implemented yet :-(");
  -    }
  -
       public void loadDistribution(File file) throws IOException {
           throw new UnsupportedOperationException("Not Implemented yet :-(");
  -    }
  -
  -    public void saveDistribution(String filePath) throws
  -        IOException,IllegalStateException {
  -       throw new UnsupportedOperationException("Not Implemented yet :-(");
       }
   
       public void saveDistribution(File file) throws
  
  
  

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

Reply via email to