com.healthmarketscience.jackcess
Class ExportUtil.Builder
java.lang.Object
com.healthmarketscience.jackcess.ExportUtil.Builder
- Enclosing class:
- ExportUtil
public static class ExportUtil.Builder
- extends Object
Builder which simplifies configuration of an export operation.
ExportUtil.Builder
public ExportUtil.Builder(Database db)
ExportUtil.Builder
public ExportUtil.Builder(Database db,
String tableName)
ExportUtil.Builder
public ExportUtil.Builder(Cursor cursor)
setDatabase
public ExportUtil.Builder setDatabase(Database db)
setTableName
public ExportUtil.Builder setTableName(String tableName)
setCursor
public ExportUtil.Builder setCursor(Cursor cursor)
setDelimiter
public ExportUtil.Builder setDelimiter(String delim)
setQuote
public ExportUtil.Builder setQuote(char quote)
setFilter
public ExportUtil.Builder setFilter(ExportFilter filter)
setHeader
public ExportUtil.Builder setHeader(boolean header)
setFileNameExtension
public ExportUtil.Builder setFileNameExtension(String ext)
exportAll
public void exportAll(File dir)
throws IOException
- Throws:
IOException
- See Also:
ExportUtil.exportAll(Database,File,String,boolean,String,char,ExportFilter)
exportFile
public void exportFile(File f)
throws IOException
- Throws:
IOException
- See Also:
ExportUtil.exportFile(Database,String,File,boolean,String,char,ExportFilter)
exportWriter
public void exportWriter(BufferedWriter writer)
throws IOException
- Throws:
IOException
- See Also:
ExportUtil.exportWriter(Database,String,BufferedWriter,boolean,String,char,ExportFilter)
,
ExportUtil.exportWriter(Cursor,BufferedWriter,boolean,String,char,ExportFilter)
Copyright © 2005-2013 Health Market Science. All Rights Reserved.