com.healthmarketscience.jackcess
Class ImportUtil.Builder
java.lang.Object
com.healthmarketscience.jackcess.ImportUtil.Builder
- Enclosing class:
- ImportUtil
public static class ImportUtil.Builder
- extends Object
Builder which simplifies configuration of an import operation.
ImportUtil.Builder
public ImportUtil.Builder(Database db)
ImportUtil.Builder
public ImportUtil.Builder(Database db,
String tableName)
setDatabase
public ImportUtil.Builder setDatabase(Database db)
setTableName
public ImportUtil.Builder setTableName(String tableName)
setDelimiter
public ImportUtil.Builder setDelimiter(String delim)
setQuote
public ImportUtil.Builder setQuote(char quote)
setFilter
public ImportUtil.Builder setFilter(ImportFilter filter)
setUseExistingTable
public ImportUtil.Builder setUseExistingTable(boolean useExistingTable)
setHeader
public ImportUtil.Builder setHeader(boolean header)
importResultSet
public String importResultSet(ResultSet source)
throws SQLException,
IOException
- Throws:
SQLException
IOException
- See Also:
ImportUtil.importResultSet(ResultSet,Database,String,ImportFilter,boolean)
importFile
public String importFile(File f)
throws IOException
- Throws:
IOException
- See Also:
ImportUtil.importFile(File,Database,String,String,char,ImportFilter,boolean,boolean)
importReader
public String importReader(BufferedReader reader)
throws IOException
- Throws:
IOException
- See Also:
ImportUtil.importReader(BufferedReader,Database,String,String,char,ImportFilter,boolean,boolean)
Copyright © 2005-2013 Health Market Science. All Rights Reserved.