commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1396290 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/PropertiesConfiguration.java
Date Tue, 09 Oct 2012 20:15:58 GMT
Author: oheger
Date: Tue Oct  9 20:15:58 2012
New Revision: 1396290

URL: http://svn.apache.org/viewvc?rev=1396290&view=rev
Log:
PropertiesConfiguration now implements FileBasedConfiguration.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/PropertiesConfiguration.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/PropertiesConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/PropertiesConfiguration.java?rev=1396290&r1=1396289&r2=1396290&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/PropertiesConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/PropertiesConfiguration.java
Tue Oct  9 20:15:58 2012
@@ -174,6 +174,7 @@ import org.apache.commons.lang.StringUti
  * @version $Id$
  */
 public class PropertiesConfiguration extends AbstractFileConfiguration
+    implements FileBasedConfiguration
 {
     /** Constant for the supported comment characters.*/
     static final String COMMENT_CHARS = "#!";
@@ -480,6 +481,11 @@ public class PropertiesConfiguration ext
         }
     }
 
+    public void read(Reader in) throws ConfigurationException, IOException
+    {
+        load(in);
+    }
+
     /**
      * Save the configuration to the specified stream.
      *
@@ -499,6 +505,11 @@ public class PropertiesConfiguration ext
         }
     }
 
+    public void write(Writer out) throws ConfigurationException, IOException
+    {
+        save(out);
+    }
+
     /**
      * Extend the setBasePath method to turn includes
      * on and off based on the existence of a base path.



Mime
View raw message