commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130714 - /commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/Main.java
Date Thu, 02 Jun 2011 18:40:06 GMT
Author: simonetripodi
Date: Thu Jun  2 18:40:06 2011
New Revision: 1130714

URL: http://svn.apache.org/viewvc?rev=1130714&view=rev
Log:
organized import

Modified:
    commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/Main.java

Modified: commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/Main.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/Main.java?rev=1130714&r1=1130713&r2=1130714&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/Main.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/Main.java
Thu Jun  2 18:40:06 2011
@@ -17,7 +17,12 @@ package org.apache.commons.digester3.exa
  * limitations under the License.
  */ 
 
+import java.io.File;
+import java.io.IOException;
+import java.sql.Connection;
+
 import org.apache.commons.digester3.Digester;
+import org.xml.sax.SAXException;
 
 /**
  * A simple program to demonstrate that the Commons Digester module can be
@@ -63,7 +68,7 @@ public class Main
         // Here you would establish a real connection.
         // There would also be a finally clause to ensure it is
         // closed after parsing terminates, etc.
-        java.sql.Connection connection = null;
+        Connection connection = null;
 
         // Add rules to the digester that will be triggered while
         // parsing occurs.
@@ -73,15 +78,15 @@ public class Main
         System.out.println( "Parsing commencing..." );
         try
         {
-            java.io.File srcfile = new java.io.File( filename );
+            File srcfile = new File( filename );
             d.parse( srcfile );
         }
-        catch ( java.io.IOException ioe )
+        catch ( IOException ioe )
         {
             System.out.println( "Error reading input file:" + ioe.getMessage() );
             System.exit( -1 );
         }
-        catch ( org.xml.sax.SAXException se )
+        catch ( SAXException se )
         {
             System.out.println( "Error parsing input file:" + se.getMessage() );
             System.exit( -1 );



Mime
View raw message