summaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2013-03-15 16:24:29 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2013-03-15 16:24:29 +0000
commitc935d2bdbad770238f6d25208999ceab75197ffa (patch)
tree3696610e0d74f2b070e71d766ac10d60e11dacff /src/java
parenta1d94149888e0612be3e561b05602de88ac5f49c (diff)
downloadjackcess-c935d2bdbad770238f6d25208999ceab75197ffa.tar.gz
jackcess-c935d2bdbad770238f6d25208999ceab75197ffa.zip
don't need init method on import/export filters after all
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/jackcess-2@688 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/healthmarketscience/jackcess/util/ExportFilter.java10
-rw-r--r--src/java/com/healthmarketscience/jackcess/util/ExportUtil.java3
-rw-r--r--src/java/com/healthmarketscience/jackcess/util/ImportFilter.java10
-rw-r--r--src/java/com/healthmarketscience/jackcess/util/ImportUtil.java6
-rw-r--r--src/java/com/healthmarketscience/jackcess/util/SimpleExportFilter.java4
-rw-r--r--src/java/com/healthmarketscience/jackcess/util/SimpleImportFilter.java4
6 files changed, 0 insertions, 37 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/util/ExportFilter.java b/src/java/com/healthmarketscience/jackcess/util/ExportFilter.java
index 9fece9d..b9b8607 100644
--- a/src/java/com/healthmarketscience/jackcess/util/ExportFilter.java
+++ b/src/java/com/healthmarketscience/jackcess/util/ExportFilter.java
@@ -40,16 +40,6 @@ import com.healthmarketscience.jackcess.Column;
public interface ExportFilter {
/**
- * Called before any calls {@link #filterColumns} and {@link #filterRow} for
- * a single export operation. Allows the given instance to return a
- * per-call instance which can maintain state.
- *
- * @return the ExportFilter instance to use for the rest of the export
- * operation
- */
- public ExportFilter init();
-
- /**
* The columns that should be used to create the exported file.
*
* @param columns
diff --git a/src/java/com/healthmarketscience/jackcess/util/ExportUtil.java b/src/java/com/healthmarketscience/jackcess/util/ExportUtil.java
index 81bf6da..059347d 100644
--- a/src/java/com/healthmarketscience/jackcess/util/ExportUtil.java
+++ b/src/java/com/healthmarketscience/jackcess/util/ExportUtil.java
@@ -308,9 +308,6 @@ public class ExportUtil {
"(?:" + Pattern.quote(delimiter) + ")|(?:" +
Pattern.quote("" + quote) + ")|(?:[\n\r])");
- // allow filter to setup per-call state
- filter = filter.init();
-
List<? extends Column> origCols = cursor.getTable().getColumns();
List<Column> columns = new ArrayList<Column>(origCols);
columns = filter.filterColumns(columns);
diff --git a/src/java/com/healthmarketscience/jackcess/util/ImportFilter.java b/src/java/com/healthmarketscience/jackcess/util/ImportFilter.java
index 786dbac..a7131b7 100644
--- a/src/java/com/healthmarketscience/jackcess/util/ImportFilter.java
+++ b/src/java/com/healthmarketscience/jackcess/util/ImportFilter.java
@@ -42,16 +42,6 @@ import com.healthmarketscience.jackcess.ColumnBuilder;
public interface ImportFilter {
/**
- * Called before any calls {@link #filterColumns} and {@link #filterRow} for
- * a single import operation. Allows the given instance to return a
- * per-call instance which can maintain state.
- *
- * @return the ImportFilter instance to use for the rest of the import
- * operation
- */
- public ImportFilter init();
-
- /**
* The columns that should be used to create the imported table.
* @param destColumns the columns as determined by the import code, may be
* directly modified and returned
diff --git a/src/java/com/healthmarketscience/jackcess/util/ImportUtil.java b/src/java/com/healthmarketscience/jackcess/util/ImportUtil.java
index 56e30dc..58b04bb 100644
--- a/src/java/com/healthmarketscience/jackcess/util/ImportUtil.java
+++ b/src/java/com/healthmarketscience/jackcess/util/ImportUtil.java
@@ -168,9 +168,6 @@ public class ImportUtil
{
ResultSetMetaData md = source.getMetaData();
- // allow filter to setup per-call state
- filter = filter.init();
-
name = DatabaseImpl.escapeIdentifier(name);
Table table = null;
if(!useExistingTable || ((table = db.getTable(name)) == null)) {
@@ -459,9 +456,6 @@ public class ImportUtil
Pattern delimPat = Pattern.compile(delim);
- // allow filter to setup per-call state
- filter = filter.init();
-
try {
name = DatabaseImpl.escapeIdentifier(name);
Table table = null;
diff --git a/src/java/com/healthmarketscience/jackcess/util/SimpleExportFilter.java b/src/java/com/healthmarketscience/jackcess/util/SimpleExportFilter.java
index 70f4118..5e61d6d 100644
--- a/src/java/com/healthmarketscience/jackcess/util/SimpleExportFilter.java
+++ b/src/java/com/healthmarketscience/jackcess/util/SimpleExportFilter.java
@@ -44,10 +44,6 @@ public class SimpleExportFilter implements ExportFilter {
public SimpleExportFilter() {
}
- public ExportFilter init() {
- return this;
- }
-
public List<Column> filterColumns(List<Column> columns) throws IOException {
return columns;
}
diff --git a/src/java/com/healthmarketscience/jackcess/util/SimpleImportFilter.java b/src/java/com/healthmarketscience/jackcess/util/SimpleImportFilter.java
index fe475f3..40b27ef 100644
--- a/src/java/com/healthmarketscience/jackcess/util/SimpleImportFilter.java
+++ b/src/java/com/healthmarketscience/jackcess/util/SimpleImportFilter.java
@@ -47,10 +47,6 @@ public class SimpleImportFilter implements ImportFilter {
public SimpleImportFilter() {
}
- public ImportFilter init() {
- return this;
- }
-
public List<ColumnBuilder> filterColumns(List<ColumnBuilder> destColumns,
ResultSetMetaData srcColumns)
throws SQLException, IOException