com.healthmarketscience.jackcess
Class SimpleExportFilter

java.lang.Object
  extended by com.healthmarketscience.jackcess.SimpleExportFilter
All Implemented Interfaces:
ExportFilter

public class SimpleExportFilter
extends Object
implements ExportFilter

Simple concrete implementation of ImportFilter which just returns the given values.

Author:
James Ahlborn

Field Summary
static SimpleExportFilter INSTANCE
           
 
Constructor Summary
SimpleExportFilter()
           
 
Method Summary
 List<Column> filterColumns(List<Column> columns)
          The columns that should be used to create the exported file.
 Object[] filterRow(Object[] row)
          The desired values for the row.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleExportFilter INSTANCE
Constructor Detail

SimpleExportFilter

public SimpleExportFilter()
Method Detail

filterColumns

public List<Column> filterColumns(List<Column> columns)
                           throws IOException
Description copied from interface: ExportFilter
The columns that should be used to create the exported file.

Specified by:
filterColumns in interface ExportFilter
Parameters:
columns - the columns as determined by the export code, may be directly modified and returned
Returns:
the columns to use when creating the export file
Throws:
IOException

filterRow

public Object[] filterRow(Object[] row)
                   throws IOException
Description copied from interface: ExportFilter
The desired values for the row.

Specified by:
filterRow in interface ExportFilter
Parameters:
row - the row data as determined by the import code, may be directly modified
Returns:
the row data as it should be written to the import table. if null, the row will be skipped
Throws:
IOException


Copyright © 2005-2013 Health Market Science. All Rights Reserved.