commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1413050 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/XMLConfiguration.java
Date Fri, 23 Nov 2012 20:42:12 GMT
Author: oheger
Date: Fri Nov 23 20:42:12 2012
New Revision: 1413050

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

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

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/XMLConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/XMLConfiguration.java?rev=1413050&r1=1413049&r2=1413050&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/XMLConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/XMLConfiguration.java
Fri Nov 23 20:42:12 2012
@@ -167,7 +167,7 @@ import org.xml.sax.helpers.DefaultHandle
  * @version $Id$
  */
 public class XMLConfiguration extends AbstractHierarchicalFileConfiguration
-    implements EntityResolver, EntityRegistry
+    implements EntityResolver, EntityRegistry, FileBasedConfiguration
 {
     /**
      * The serial version UID.
@@ -890,6 +890,11 @@ public class XMLConfiguration extends Ab
         load(new InputSource(in));
     }
 
+    public void read(Reader in) throws ConfigurationException, IOException
+    {
+        load(in);
+    }
+
     /**
      * Loads a configuration file from the specified input source.
      * @param source the input source
@@ -948,6 +953,11 @@ public class XMLConfiguration extends Ab
         }
     }
 
+    public void write(Writer out) throws ConfigurationException, IOException
+    {
+        save(out);
+    }
+
     /**
      * Validate the document against the Schema.
      * @throws ConfigurationException if the validation fails.



Mime
View raw message