aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/util
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2021-01-17 23:32:53 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2021-01-17 23:32:53 +0000
commit23f397f625ca3b0412005641d1ae2c00a6863e53 (patch)
treeda3a1ee5bbb7a9e34c63c3778cb1e4c6c57401e0 /src/main/java/com/healthmarketscience/jackcess/util
parent08d31ee46e521a7231f70d17a5f9b33d75f3af2a (diff)
downloadjackcess-23f397f625ca3b0412005641d1ae2c00a6863e53.tar.gz
jackcess-23f397f625ca3b0412005641d1ae2c00a6863e53.zip
isolate java.sql usage so that the module is not required for core jackcess usage
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1350 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/util')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java b/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java
index 2fd6455..b68e448 100644
--- a/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java
+++ b/src/main/java/com/healthmarketscience/jackcess/util/ImportUtil.java
@@ -16,6 +16,13 @@ limitations under the License.
package com.healthmarketscience.jackcess.util;
+import com.healthmarketscience.jackcess.ColumnBuilder;
+import com.healthmarketscience.jackcess.DataType;
+import com.healthmarketscience.jackcess.Database;
+import com.healthmarketscience.jackcess.Table;
+import com.healthmarketscience.jackcess.TableBuilder;
+import com.healthmarketscience.jackcess.impl.ByteUtil;
+import com.healthmarketscience.jackcess.impl.DatabaseImpl;
import java.io.BufferedReader;
import java.io.EOFException;
import java.io.File;
@@ -29,14 +36,6 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import com.healthmarketscience.jackcess.ColumnBuilder;
-import com.healthmarketscience.jackcess.DataType;
-import com.healthmarketscience.jackcess.Database;
-import com.healthmarketscience.jackcess.Table;
-import com.healthmarketscience.jackcess.TableBuilder;
-import com.healthmarketscience.jackcess.impl.ByteUtil;
-import com.healthmarketscience.jackcess.impl.DatabaseImpl;
-
/**
* Utility class for importing tables to an Access database from other
* sources. See the {@link Builder} for convenient configuration of the
@@ -64,7 +63,7 @@ public class ImportUtil
* @return a List of Columns
*/
public static List<ColumnBuilder> toColumns(ResultSetMetaData md)
- throws SQLException
+ throws SQLException, IOException
{
List<ColumnBuilder> columns = new ArrayList<ColumnBuilder>();
for (int i = 1; i <= md.getColumnCount(); i++) {