sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1486996 - in /sis/branches/JDK6: ./ core/sis-metadata/src/test/java/org/apache/sis/test/suite/ core/sis-referencing/src/test/java/org/apache/sis/test/suite/ core/sis-utility/src/test/java/org/apache/sis/test/ core/sis-utility/src/test/java...
Date Tue, 28 May 2013 16:37:33 GMT
Author: desruisseaux
Date: Tue May 28 16:37:32 2013
New Revision: 1486996

URL: http://svn.apache.org/r1486996
Log:
Merge from the JDK7 branch.

Added:
    sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java
      - copied, changed from r1486990, sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java
    sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
      - copied, changed from r1486990, sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
    sis/branches/JDK6/storage/sis-storage/   (props changed)
      - copied from r1486990, sis/branches/JDK7/storage/sis-storage/
Removed:
    sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/internal/storage/
    sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/storage/DataStoreException.java
    sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/storage/package-info.java
    sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/internal/storage/
Modified:
    sis/branches/JDK6/   (props changed)
    sis/branches/JDK6/core/sis-metadata/src/test/java/org/apache/sis/test/suite/MetadataTestSuite.java
    sis/branches/JDK6/core/sis-referencing/src/test/java/org/apache/sis/test/suite/ReferencingTestSuite.java
    sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/TestSuite.java
    sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
    sis/branches/JDK6/ide-project/NetBeans/nbproject/build-impl.xml
    sis/branches/JDK6/ide-project/NetBeans/nbproject/genfiles.properties
    sis/branches/JDK6/ide-project/NetBeans/nbproject/project.properties
    sis/branches/JDK6/ide-project/NetBeans/nbproject/project.xml
    sis/branches/JDK6/pom.xml
    sis/branches/JDK6/src/site/apt/index.apt
    sis/branches/JDK6/storage/pom.xml
    sis/branches/JDK6/storage/sis-netcdf/pom.xml
    sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/ChannelDecoder.java
    sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/impl/ChannelDecoderTest.java
    sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/test/suite/NetcdfTestSuite.java
    sis/branches/JDK6/storage/sis-storage/pom.xml
    sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelDataInput.java
    sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelImageInputStream.java
    sis/branches/JDK6/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/ChannelImageInputStreamTest.java

Propchange: sis/branches/JDK6/
------------------------------------------------------------------------------
  Merged /sis/branches/JDK7:r1486214-1486990

Modified: sis/branches/JDK6/core/sis-metadata/src/test/java/org/apache/sis/test/suite/MetadataTestSuite.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/core/sis-metadata/src/test/java/org/apache/sis/test/suite/MetadataTestSuite.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/core/sis-metadata/src/test/java/org/apache/sis/test/suite/MetadataTestSuite.java
[UTF-8] (original)
+++ sis/branches/JDK6/core/sis-metadata/src/test/java/org/apache/sis/test/suite/MetadataTestSuite.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -56,7 +56,7 @@ import org.junit.BeforeClass;
 public final strictfp class MetadataTestSuite extends TestSuite {
     /**
      * Verifies the list of tests before to run the suite.
-     * See {@link #verifyTestList(Class)} for more information.
+     * See {@link #verifyTestList(Class, Class<?>[])} for more information.
      */
     @BeforeClass
     public static void verifyTestList() {

Modified: sis/branches/JDK6/core/sis-referencing/src/test/java/org/apache/sis/test/suite/ReferencingTestSuite.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/core/sis-referencing/src/test/java/org/apache/sis/test/suite/ReferencingTestSuite.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/core/sis-referencing/src/test/java/org/apache/sis/test/suite/ReferencingTestSuite.java
[UTF-8] (original)
+++ sis/branches/JDK6/core/sis-referencing/src/test/java/org/apache/sis/test/suite/ReferencingTestSuite.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -43,7 +43,7 @@ import org.junit.BeforeClass;
 public final strictfp class ReferencingTestSuite extends TestSuite {
     /**
      * Verifies the list of tests before to run the suite.
-     * See {@link #verifyTestList(Class)} for more information.
+     * See {@link #verifyTestList(Class, Class<?>[])} for more information.
      */
     @BeforeClass
     public static void verifyTestList() {

Modified: sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/TestSuite.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/TestSuite.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/TestSuite.java [UTF-8]
(original)
+++ sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/TestSuite.java [UTF-8]
Tue May 28 16:37:32 2013
@@ -65,7 +65,7 @@ public abstract strictfp class TestSuite
      * {@preformat java
      *    &#64;BeforeClass
      *    public static void verifyTestList() {
-     *        verifyTestList(MetadataTestSuite.class);
+     *        verifyTestList(MetadataTestSuite.class, BASE_TEST_CLASSES);
      *    }
      * }
      *

Modified: sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
[UTF-8] (original)
+++ sis/branches/JDK6/core/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -114,7 +114,7 @@ import org.junit.BeforeClass;
 public final strictfp class UtilityTestSuite extends TestSuite {
     /**
      * Verifies the list of tests before to run the suite.
-     * See {@link #verifyTestList(Class)} for more information.
+     * See {@link #verifyTestList(Class, Class<?>[])} for more information.
      */
     @BeforeClass
     public static void verifyTestList() {

Modified: sis/branches/JDK6/ide-project/NetBeans/nbproject/build-impl.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/ide-project/NetBeans/nbproject/build-impl.xml?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/ide-project/NetBeans/nbproject/build-impl.xml (original)
+++ sis/branches/JDK6/ide-project/NetBeans/nbproject/build-impl.xml Tue May 28 16:37:32 2013
@@ -136,6 +136,7 @@ is divided into following sections:
         <condition property="have.tests">
             <or>
                 <available file="${test.netcdf.dir}"/>
+                <available file="${test.storage.dir}"/>
                 <available file="${test.referencing.dir}"/>
                 <available file="${test.metadata.dir}"/>
                 <available file="${test.utility.dir}"/>
@@ -147,6 +148,7 @@ is divided into following sections:
                 <available file="${src.webapp.dir}"/>
                 <available file="${src.app.dir}"/>
                 <available file="${src.netcdf.dir}"/>
+                <available file="${src.storage.dir}"/>
                 <available file="${src.referencing.dir}"/>
                 <available file="${src.metadata.dir}"/>
                 <available file="${src.utility.dir}"/>
@@ -241,10 +243,12 @@ is divided into following sections:
         <fail unless="src.webapp.dir">Must set src.webapp.dir</fail>
         <fail unless="src.app.dir">Must set src.app.dir</fail>
         <fail unless="src.netcdf.dir">Must set src.netcdf.dir</fail>
+        <fail unless="src.storage.dir">Must set src.storage.dir</fail>
         <fail unless="src.referencing.dir">Must set src.referencing.dir</fail>
         <fail unless="src.metadata.dir">Must set src.metadata.dir</fail>
         <fail unless="src.utility.dir">Must set src.utility.dir</fail>
         <fail unless="test.netcdf.dir">Must set test.netcdf.dir</fail>
+        <fail unless="test.storage.dir">Must set test.storage.dir</fail>
         <fail unless="test.referencing.dir">Must set test.referencing.dir</fail>
         <fail unless="test.metadata.dir">Must set test.metadata.dir</fail>
         <fail unless="test.utility.dir">Must set test.utility.dir</fail>
@@ -268,7 +272,7 @@ is divided into following sections:
     </target>
     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"
name="srcdir"/>
+            <attribute default="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.storage.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"
name="srcdir"/>
             <attribute default="${build.classes.dir}" name="destdir"/>
             <attribute default="${javac.classpath}" name="classpath"/>
             <attribute default="${javac.processorpath}" name="processorpath"/>
@@ -308,7 +312,7 @@ is divided into following sections:
     </target>
     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors"
unless="ap.supported.internal">
         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"
name="srcdir"/>
+            <attribute default="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.storage.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"
name="srcdir"/>
             <attribute default="${build.classes.dir}" name="destdir"/>
             <attribute default="${javac.classpath}" name="classpath"/>
             <attribute default="${javac.processorpath}" name="processorpath"/>
@@ -340,7 +344,7 @@ is divided into following sections:
     </target>
     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors"
name="-init-macrodef-javac">
         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"
name="srcdir"/>
+            <attribute default="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.storage.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"
name="srcdir"/>
             <attribute default="${build.classes.dir}" name="destdir"/>
             <attribute default="${javac.classpath}" name="classpath"/>
             <sequential>
@@ -430,6 +434,9 @@ is divided into following sections:
                         <fileset dir="${test.netcdf.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
                             <filename name="@{testincludes}"/>
                         </fileset>
+                        <fileset dir="${test.storage.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
+                            <filename name="@{testincludes}"/>
+                        </fileset>
                         <fileset dir="${test.referencing.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
                             <filename name="@{testincludes}"/>
                         </fileset>
@@ -471,6 +478,9 @@ is divided into following sections:
                     <fileset dir="${test.netcdf.dir}" excludes="@{excludes},**/*.xml,${excludes}"
includes="@{includes}">
                         <filename name="@{testincludes}"/>
                     </fileset>
+                    <fileset dir="${test.storage.dir}" excludes="@{excludes},**/*.xml,${excludes}"
includes="@{includes}">
+                        <filename name="@{testincludes}"/>
+                    </fileset>
                     <fileset dir="${test.referencing.dir}" excludes="@{excludes},**/*.xml,${excludes}"
includes="@{includes}">
                         <filename name="@{testincludes}"/>
                     </fileset>
@@ -592,6 +602,9 @@ is divided into following sections:
                         <fileset dir="${test.netcdf.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
                             <filename name="@{testincludes}"/>
                         </fileset>
+                        <fileset dir="${test.storage.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
+                            <filename name="@{testincludes}"/>
+                        </fileset>
                         <fileset dir="${test.referencing.dir}" excludes="@{excludes},${excludes}"
includes="@{includes}">
                             <filename name="@{testincludes}"/>
                         </fileset>
@@ -965,7 +978,7 @@ is divided into following sections:
                 <include name="*"/>
             </dirset>
         </pathconvert>
-        <j2seproject3:depend srcdir="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}:${build.generated.subdirs}"/>
+        <j2seproject3:depend srcdir="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.storage.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}:${build.generated.subdirs}"/>
     </target>
     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend"
if="have.sources" name="-do-compile">
         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
@@ -974,6 +987,7 @@ is divided into following sections:
             <fileset dir="${src.webapp.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${src.app.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${src.netcdf.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
+            <fileset dir="${src.storage.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${src.referencing.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${src.metadata.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${src.utility.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
@@ -997,7 +1011,7 @@ is divided into following sections:
     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
         <j2seproject3:force-recompile/>
-        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"
sourcepath="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"/>
+        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"
sourcepath="${src.local-src.dir}:${src.webapp.dir}:${src.app.dir}:${src.netcdf.dir}:${src.storage.dir}:${src.referencing.dir}:${src.metadata.dir}:${src.utility.dir}"/>
     </target>
     <target name="-post-compile-single">
         <!-- Empty placeholder for easier customization. -->
@@ -1270,6 +1284,9 @@ is divided into following sections:
             <fileset dir="${src.netcdf.dir}" excludes="*.java,${excludes}" includes="${includes}">
                 <filename name="**/*.java"/>
             </fileset>
+            <fileset dir="${src.storage.dir}" excludes="*.java,${excludes}" includes="${includes}">
+                <filename name="**/*.java"/>
+            </fileset>
             <fileset dir="${src.referencing.dir}" excludes="*.java,${excludes}" includes="${includes}">
                 <filename name="**/*.java"/>
             </fileset>
@@ -1298,6 +1315,9 @@ is divided into following sections:
             <fileset dir="${src.netcdf.dir}" excludes="${excludes}" includes="${includes}">
                 <filename name="**/doc-files/**"/>
             </fileset>
+            <fileset dir="${src.storage.dir}" excludes="${excludes}" includes="${includes}">
+                <filename name="**/doc-files/**"/>
+            </fileset>
             <fileset dir="${src.referencing.dir}" excludes="${excludes}" includes="${includes}">
                 <filename name="**/doc-files/**"/>
             </fileset>
@@ -1329,12 +1349,13 @@ is divided into following sections:
         <!-- You can override this target in the ../build.xml file. -->
     </target>
     <target if="do.depend.true" name="-compile-test-depend">
-        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}"
srcdir="${test.netcdf.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"/>
+        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}"
srcdir="${test.netcdf.dir}:${test.storage.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"/>
     </target>
     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend"
if="have.tests" name="-do-compile-test">
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}"
debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}"
srcdir="${test.netcdf.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"/>
+        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}"
debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}"
srcdir="${test.netcdf.dir}:${test.storage.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"/>
         <copy todir="${build.test.classes.dir}">
             <fileset dir="${test.netcdf.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
+            <fileset dir="${test.storage.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${test.referencing.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${test.metadata.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${test.utility.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
@@ -1352,9 +1373,10 @@ is divided into following sections:
     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single"
if="have.tests" name="-do-compile-test-single">
         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}"
debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}"
processorpath="${javac.test.processorpath}" sourcepath="${test.netcdf.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"
srcdir="${test.netcdf.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"/>
+        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}"
debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}"
processorpath="${javac.test.processorpath}" sourcepath="${test.netcdf.dir}:${test.storage.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"
srcdir="${test.netcdf.dir}:${test.storage.dir}:${test.referencing.dir}:${test.metadata.dir}:${test.utility.dir}"/>
         <copy todir="${build.test.classes.dir}">
             <fileset dir="${test.netcdf.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
+            <fileset dir="${test.storage.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${test.referencing.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${test.metadata.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>
             <fileset dir="${test.utility.dir}" excludes="${build.classes.excludes},${excludes}"
includes="${includes}"/>

Modified: sis/branches/JDK6/ide-project/NetBeans/nbproject/genfiles.properties
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/ide-project/NetBeans/nbproject/genfiles.properties?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/ide-project/NetBeans/nbproject/genfiles.properties [ISO-8859-1] (original)
+++ sis/branches/JDK6/ide-project/NetBeans/nbproject/genfiles.properties [ISO-8859-1] Tue
May 28 16:37:32 2013
@@ -3,6 +3,6 @@
 build.xml.data.CRC32=58e6b21c
 build.xml.script.CRC32=462eaba0
 build.xml.stylesheet.CRC32=28e38971@1.53.1.46
-nbproject/build-impl.xml.data.CRC32=08945aac
-nbproject/build-impl.xml.script.CRC32=3e302f66
+nbproject/build-impl.xml.data.CRC32=8ee4ca76
+nbproject/build-impl.xml.script.CRC32=3ef3d339
 nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46

Modified: sis/branches/JDK6/ide-project/NetBeans/nbproject/project.properties
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/ide-project/NetBeans/nbproject/project.properties?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/ide-project/NetBeans/nbproject/project.properties [ISO-8859-1] (original)
+++ sis/branches/JDK6/ide-project/NetBeans/nbproject/project.properties [ISO-8859-1] Tue May
28 16:37:32 2013
@@ -30,6 +30,8 @@ src.webapp.dir       = ${project.root}/a
 src.app.dir          = ${project.root}/application/sis-app/src/main/java
 src.netcdf.dir       = ${project.root}/storage/sis-netcdf/src/main/java
 test.netcdf.dir      = ${project.root}/storage/sis-netcdf/src/test/java
+src.storage.dir      = ${project.root}/storage/sis-storage/src/main/java
+test.storage.dir     = ${project.root}/storage/sis-storage/src/test/java
 src.referencing.dir  = ${project.root}/core/sis-referencing/src/main/java
 test.referencing.dir = ${project.root}/core/sis-referencing/src/test/java
 src.metadata.dir     = ${project.root}/core/sis-metadata/src/main/java
@@ -54,6 +56,7 @@ jcip.version         = 1.0
 osgi.version         = 5.0.0
 netcdf.version       = 4.3.16
 joda-time.version    = 2.0
+httpclient.version   = 3.1
 slf4j.version        = 1.6.4
 junit.version        = 4.10
 
@@ -94,6 +97,7 @@ run.test.classpath=\
     ${build.test.classes.dir}:\
     ${maven.repository}/edu/ucar/udunits/${netcdf.version}/udunits-${netcdf.version}.jar:\
     ${maven.repository}/joda-time/joda-time/${joda-time.version}/joda-time-${joda-time.version}.jar:\
+    ${maven.repository}/commons-httpclient/commons-httpclient/${httpclient.version}/commons-httpclient-${httpclient.version}.jar:\
     ${maven.repository}/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.jar:\
     ${maven.repository}/org/slf4j/slf4j-jdk14/${slf4j.version}/slf4j-jdk14-${slf4j.version}.jar
 debug.classpath=\

Modified: sis/branches/JDK6/ide-project/NetBeans/nbproject/project.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/ide-project/NetBeans/nbproject/project.xml?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/ide-project/NetBeans/nbproject/project.xml (original)
+++ sis/branches/JDK6/ide-project/NetBeans/nbproject/project.xml Tue May 28 16:37:32 2013
@@ -9,12 +9,14 @@
                 <root id="src.webapp.dir" name="Web application"/>
                 <root id="src.app.dir" name="Application"/>
                 <root id="src.netcdf.dir" name="NetCDF"/>
+                <root id="src.storage.dir" name="Storage"/>
                 <root id="src.referencing.dir" name="Referencing"/>
                 <root id="src.metadata.dir" name="Metadata"/>
                 <root id="src.utility.dir" name="Utility"/>
             </source-roots>
             <test-roots>
                 <root id="test.netcdf.dir" name="NetCDF tests"/>
+                <root id="test.storage.dir" name="Storage tests"/>
                 <root id="test.referencing.dir" name="Referencing tests"/>
                 <root id="test.metadata.dir" name="Metadata tests"/>
                 <root id="test.utility.dir" name="Utility tests"/>

Modified: sis/branches/JDK6/pom.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/pom.xml?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/pom.xml (original)
+++ sis/branches/JDK6/pom.xml Tue May 28 16:37:32 2013
@@ -47,8 +47,17 @@
   <description>
   <!-- Left alignment because this description will be copied in META-INF/MANIFEST.MF
        The leading space after the first line is necessary for proper formatting. -->
-Apache SIS is a toolkit for describing location information, including points,
- bounding boxes, polygons, and for computing distances on that information.
+Apache SIS is a free software, Java language library for developing geospatial applications.
+ SIS provides data structures for geographic data and associated metadata along with methods
+ to manipulate those data structures. The SIS metadata module forms the base of the library
+ and enables the creation of metadata objects which comply with the ISO 19115 metadata model
+ and which can be read from or written to ISO 19139 compliant XML documents.
+ The SIS referencing module will enable the construction of geodetic data structures for
+ geospatial referencing based on the ISO 19111 model such as axis, projection and coordinate
+ reference system definitions, along with the associated operations which enable the mathematical
+ conversion of coordinates between different systems of reference.
+ The SIS storage modules will provide a common approach to the reading and writing of grid
coverages
+ applicable to simple imagery as to many dimensional data structures.
   </description>
   <inceptionYear>2010</inceptionYear>
 

Modified: sis/branches/JDK6/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/src/site/apt/index.apt?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/src/site/apt/index.apt [UTF-8] (original)
+++ sis/branches/JDK6/src/site/apt/index.apt [UTF-8] Tue May 28 16:37:32 2013
@@ -5,8 +5,20 @@
 
 The Apache SIS™ library
 
-  Apache SIS is a toolkit for describing location information, including points, bounding
boxes,
-  polygons, and for computing distances on that information.
+  Apache SIS is a free software, Java language library for developing geospatial applications.
+  The library can be used for desktop or server applications.
+  SIS is an implementation of GeoAPI 3.0 interfaces.
+
+  SIS provides data structures for geographic data and associated metadata along with methods
+  to manipulate those data structures. The SIS metadata module forms the base of the library
+  and enables the creation of metadata objects which comply with the ISO 19115 metadata model
+  and which can be read from or written to ISO 19139 compliant XML documents.
+  The SIS referencing module will enable the construction of geodetic data structures for
+  geospatial referencing based on the ISO 19111 model such as axis, projection and coordinate
+  reference system definitions, along with the associated operations which enable the mathematical
+  conversion of coordinates between different systems of reference.
+  The SIS storage modules will provide a common approach to the reading and writing of grid
coverages
+  applicable to simple imagery as to many dimensional data structures.
 
   SIS is a project of the {{{http://www.apache.org}Apache Software Foundation}}.
 

Modified: sis/branches/JDK6/storage/pom.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/pom.xml?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/pom.xml (original)
+++ sis/branches/JDK6/storage/pom.xml Tue May 28 16:37:32 2013
@@ -107,6 +107,7 @@
            Sub-modules included in the build
        =========================================================== -->
   <modules>
+    <module>sis-storage</module>
     <module>sis-netcdf</module>
   </modules>
 

Modified: sis/branches/JDK6/storage/sis-netcdf/pom.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-netcdf/pom.xml?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-netcdf/pom.xml (original)
+++ sis/branches/JDK6/storage/sis-netcdf/pom.xml Tue May 28 16:37:32 2013
@@ -90,6 +90,11 @@ Bridge between NetCDF Climate and Foreca
        =========================================================== -->
   <dependencies>
     <dependency>
+      <groupId>org.apache.sis.storage</groupId>
+      <artifactId>sis-storage</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
       <groupId>edu.ucar</groupId>
       <artifactId>netcdf</artifactId>
     </dependency>

Modified: sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/ChannelDecoder.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/ChannelDecoder.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/ChannelDecoder.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/ChannelDecoder.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -523,12 +523,13 @@ public final class ChannelDecoder extend
     /**
      * Defines the groups where to search for named attributes, in preference order.
      * The {@code null} group name stands for the global attributes.
+     *
+     * <p>Current implementation does nothing, since the NetCDF binary files that {@code
ChannelDecoder}
+     * can read do not have groups anyway. Future SIS implementations may honor the given
group names if
+     * groups support is added.</p>
      */
     @Override
     public void setSearchPath(final String... groupNames) throws IOException {
-        if (groupNames.length != 1 || groupNames[0] != null) {
-            throw new UnsupportedOperationException();
-        }
     }
 
     /**
@@ -551,7 +552,7 @@ public final class ChannelDecoder extend
      */
     private Attribute findAttribute(final String name) {
         Attribute attribute = attributeMap.get(name);
-        if (attribute == null) {
+        if (attribute == null && name != null) {
             final String lower = name.toLowerCase(NAME_LOCALE);
             if (lower != name) { // Identity comparison is ok since this check is only an
optimization for a common case.
                 attribute = attributeMap.get(lower);

Modified: sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/impl/ChannelDecoderTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/impl/ChannelDecoderTest.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/impl/ChannelDecoderTest.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/impl/ChannelDecoderTest.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -49,9 +49,21 @@ public final strictfp class ChannelDecod
     }
 
     /**
-     * Implementation of {@link #createDecoder(String)} for creating {@link ChannelDecoder}
instances.
+     * Creates a new {@link ChannelDecoder} instance for dataset of the given name.
+     * The {@code name} parameter can be one of the following values:
+     *
+     * <ul>
+     *   <li>{@link #THREDDS} for a NcML file.</li>
+     *   <li>{@link #NCEP}    for a NetCDF binary file.</li>
+     *   <li>{@link #CIP}     for a NetCDF binary file.</li>
+     *   <li>{@link #LANDSAT} for a NetCDF binary file.</li>
+     * </ul>
+     *
+     * @param  name The file name as one of the above-cited constants.
+     * @return The decoder for the given name.
+     * @throws IOException If an error occurred while opening the file.
      */
-    static Decoder createChannelDecoder(final String name) throws IOException {
+    public static Decoder createChannelDecoder(final String name) throws IOException {
         final InputStream in = IOTestCase.class.getResourceAsStream(name);
         assertNotNull(name, in);
         try {

Copied: sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java
(from r1486990, sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java?p2=sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java&p1=sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java&r1=1486990&r2=1486996&rev=1486996&view=diff
==============================================================================
--- sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/ConformanceTest.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -110,7 +110,7 @@ public final strictfp class ConformanceT
         assertNull(expected.put("identificationInfo.citation.identifier.code", "crm_v1"));
         assertNull(expected.put("contentInfo.dimension.sequenceIdentifier",    "z"));
         super.testTHREDDS();
-        assertEquals("hierarchyLevel", new HashSet<>(Arrays.asList(ScopeCode.DATASET,
ScopeCode.SERVICE)),
+        assertEquals("hierarchyLevel", new HashSet<ScopeCode>(Arrays.asList(ScopeCode.DATASET,
ScopeCode.SERVICE)),
                 metadata.getHierarchyLevels());
         /*
          * In the SIS case, the Metadata/Contact and Metadata/Identification/PointOfContact

Copied: sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
(from r1486990, sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java?p2=sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java&p1=sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java&r1=1486990&r2=1486996&rev=1486996&view=diff
==============================================================================
--- sis/branches/JDK7/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/storage/netcdf/MetadataReaderTest.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -52,8 +52,11 @@ public final strictfp class MetadataRead
     @Test
     public void testEmbedded() throws IOException {
         final Metadata metadata;
-        try (Decoder input = ChannelDecoderTest.createChannelDecoder(NCEP)) {
+        final Decoder input = ChannelDecoderTest.createChannelDecoder(NCEP);
+        try {
             metadata = new MetadataReader(null, input).read();
+        } finally {
+            input.close();
         }
         compareToExpected(metadata);
     }
@@ -67,8 +70,11 @@ public final strictfp class MetadataRead
     @Test
     public void testUCAR() throws IOException {
         final Metadata metadata;
-        try (Decoder input = new DecoderWrapper(null, new NetcdfDataset(open(NCEP)))) {
+        final Decoder input = new DecoderWrapper(null, new NetcdfDataset(open(NCEP)));
+        try {
             metadata = new MetadataReader(null, input).read();
+        } finally {
+            input.close();
         }
         compareToExpected(metadata);
     }

Modified: sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/test/suite/NetcdfTestSuite.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/test/suite/NetcdfTestSuite.java?rev=1486996&r1=1486995&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/test/suite/NetcdfTestSuite.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-netcdf/src/test/java/org/apache/sis/test/suite/NetcdfTestSuite.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -24,7 +24,7 @@ import org.junit.BeforeClass;
 
 
 /**
- * All tests from the {@code sis-referencing} module, in approximative dependency order.
+ * All tests from the {@code sis-netcdf} module, in approximative dependency order.
  *
  * @author  Martin Desruisseaux (Geomatys)
  * @since   0.3
@@ -32,18 +32,19 @@ import org.junit.BeforeClass;
  * @module
  */
 @Suite.SuiteClasses({
-    org.apache.sis.internal.storage.ChannelDataInputTest.class,
     org.apache.sis.internal.netcdf.DecoderTest.class,
     org.apache.sis.internal.netcdf.VariableTest.class,
     org.apache.sis.internal.netcdf.GridGeometryTest.class,
     org.apache.sis.internal.netcdf.impl.ChannelDecoderTest.class,
     org.apache.sis.internal.netcdf.impl.VariableInfoTest.class,
-    org.apache.sis.internal.netcdf.impl.GridGeometryInfoTest.class
+    org.apache.sis.internal.netcdf.impl.GridGeometryInfoTest.class,
+    org.apache.sis.storage.netcdf.MetadataReaderTest.class,
+    org.apache.sis.storage.netcdf.ConformanceTest.class
 })
 public final strictfp class NetcdfTestSuite extends TestSuite {
     /**
      * Verifies the list of tests before to run the suite.
-     * See {@link #verifyTestList(Class)} for more information.
+     * See {@link #verifyTestList(Class, Class<?>[])} for more information.
      */
     @BeforeClass
     public static void verifyTestList() {

Propchange: sis/branches/JDK6/storage/sis-storage/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May 28 16:37:32 2013
@@ -0,0 +1 @@
+target

Modified: sis/branches/JDK6/storage/sis-storage/pom.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-storage/pom.xml?rev=1486996&r1=1486990&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-storage/pom.xml (original)
+++ sis/branches/JDK6/storage/sis-storage/pom.xml Tue May 28 16:37:32 2013
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.apache.sis</groupId>
     <artifactId>storage</artifactId>
-    <version>0.3-jdk7-SNAPSHOT</version>
+    <version>0.3-jdk6-SNAPSHOT</version>
   </parent>
 
 

Modified: sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelDataInput.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelDataInput.java?rev=1486996&r1=1486990&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelDataInput.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelDataInput.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -31,7 +31,7 @@ import org.apache.sis.util.resources.Err
 import org.apache.sis.util.Debug;
 
 // Related to JDK7
-import java.nio.channels.SeekableByteChannel;
+import java.nio.channels.FileChannel;
 
 
 /**
@@ -115,7 +115,7 @@ public class ChannelDataInput {
         this.filename      = filename;
         this.channel       = channel;
         this.buffer        = buffer;
-        this.channelOffset = (channel instanceof SeekableByteChannel) ? ((SeekableByteChannel)
channel).position() : 0;
+        this.channelOffset = (channel instanceof FileChannel) ? ((FileChannel) channel).position()
: 0;
         if (!filled) {
             channel.read(buffer);
             buffer.flip();
@@ -655,12 +655,12 @@ public class ChannelDataInput {
              * Requested position is inside the current limits of the buffer.
              */
             buffer.position((int) p);
-        } else if (channel instanceof SeekableByteChannel) {
+        } else if (channel instanceof FileChannel) {
             /*
              * Requested position is outside the current limits of the buffer,
              * but we can set the new position directly in the channel.
              */
-            ((SeekableByteChannel) channel).position(channelOffset + position);
+            ((FileChannel) channel).position(channelOffset + position);
             bufferOffset = position;
             buffer.clear();
             channel.read(buffer);

Modified: sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelImageInputStream.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelImageInputStream.java?rev=1486996&r1=1486990&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelImageInputStream.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/ChannelImageInputStream.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -28,7 +28,7 @@ import org.apache.sis.util.resources.Err
 import static org.apache.sis.util.ArgumentChecks.ensureBetween;
 
 // Related to JDK7
-import java.nio.channels.SeekableByteChannel;
+import java.nio.channels.FileChannel;
 
 
 /**
@@ -138,8 +138,8 @@ public class ChannelImageInputStream ext
      */
     @Override
     public final long length() throws IOException {
-        if (channel instanceof SeekableByteChannel) {
-            return ((SeekableByteChannel) channel).size();
+        if (channel instanceof FileChannel) {
+            return ((FileChannel) channel).size();
         }
         return -1;
     }

Modified: sis/branches/JDK6/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/ChannelImageInputStreamTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK6/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/ChannelImageInputStreamTest.java?rev=1486996&r1=1486990&r2=1486996&view=diff
==============================================================================
--- sis/branches/JDK6/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/ChannelImageInputStreamTest.java
[UTF-8] (original)
+++ sis/branches/JDK6/storage/sis-storage/src/test/java/org/apache/sis/internal/storage/ChannelImageInputStreamTest.java
[UTF-8] Tue May 28 16:37:32 2013
@@ -65,10 +65,10 @@ public final strictfp class ChannelImage
         final Random random = TestUtilities.createRandomNumberGenerator("testWithRandomData");
         final ByteOrder byteOrder = random.nextBoolean() ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN;
         final byte[] data = ChannelDataInputTest.createRandomArray(512 * 1024, random);
-        try (ImageInputStream r = ImageIO.createImageInputStream(new ByteArrayInputStream(data));
-             ImageInputStream t = new ChannelImageInputStream("Test data",
-                     Channels.newChannel(new ByteArrayInputStream(data)), buffer, false))
-        {
+        final ImageInputStream r = ImageIO.createImageInputStream(new ByteArrayInputStream(data));
+        final ImageInputStream t = new ChannelImageInputStream("Test data",
+                     Channels.newChannel(new ByteArrayInputStream(data)), buffer, false);
+        try {
             r.setByteOrder(byteOrder);
             t.setByteOrder(byteOrder);
             while ((position = r.getStreamPosition()) < data.length - ARRAY_MAX_SIZE)
{
@@ -176,13 +176,16 @@ public final strictfp class ChannelImage
                 assertEquals("getStreamPosition()", r.getStreamPosition(), t.getStreamPosition());
                 assertEquals("getBitOffset()",      r.getBitOffset(),      t.getBitOffset());
             }
-        } catch (AssertionError | RuntimeException e) {
+        } catch (AssertionError e) {
             out.println("Position:    " + position);
             out.println("Bit offset:  " + bitOffset);
             out.println("Byte order:  " + byteOrder);
             out.println("Operation:   " + operation);
             out.println("Exception:   " + e.getLocalizedMessage());
             throw e;
+        } finally {
+            t.close();
+            r.close();
         }
     }
 }



Mime
View raw message