commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r823876 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/StreamBasedSource.java
Date Sat, 10 Oct 2009 16:01:52 GMT
Author: oheger
Date: Sat Oct 10 16:01:51 2009
New Revision: 823876

URL: http://svn.apache.org/viewvc?rev=823876&view=rev
Log:
StreamBasedSource can also throw IOExceptions.

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/StreamBasedSource.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/StreamBasedSource.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/StreamBasedSource.java?rev=823876&r1=823875&r2=823876&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/StreamBasedSource.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/StreamBasedSource.java
Sat Oct 10 16:01:51 2009
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.configuration2.base;
 
+import java.io.IOException;
 import java.io.Reader;
 import java.io.Writer;
 
@@ -47,16 +48,20 @@
      * Reader}. Note: The caller is responsible for closing the reader.
      *
      * @param reader the {@code Reader} to load the data from
-     * @throws ConfigurationException if an I/O error occurs
+     * @throws IOException if an I/O error occurs
+     * @throws ConfigurationException if an error occurs that is not related to
+     *         I/O operations, e.g. the data is not in the expected format
      */
-    void load(Reader reader) throws ConfigurationException;
+    void load(Reader reader) throws IOException, ConfigurationException;
 
     /**
      * Saves the data of this configuration source to the specified {@code
      * Writer}. Note: The caller is responsible for closing the reader.
      *
      * @param writer the {@code Writer} for storing the data
-     * @throws ConfigurationException if an I/O error occurs
+     * @throws IOException if an I/O error occurs
+     * @throws ConfigurationException if an error occurs that is not related to
+     *         I/O operations
      */
-    void save(Writer writer) throws ConfigurationException;
+    void save(Writer writer) throws IOException, ConfigurationException;
 }



Mime
View raw message