com.healthmarketscience.jackcess
Class ExportUtil.Builder

java.lang.Object
  extended by com.healthmarketscience.jackcess.ExportUtil.Builder
Enclosing class:
ExportUtil

public static class ExportUtil.Builder
extends Object

Builder which simplifies configuration of an export operation.


Constructor Summary
ExportUtil.Builder(Cursor cursor)
           
ExportUtil.Builder(Database db)
           
ExportUtil.Builder(Database db, String tableName)
           
 
Method Summary
 void exportAll(File dir)
           
 void exportFile(File f)
           
 void exportWriter(BufferedWriter writer)
           
 ExportUtil.Builder setCursor(Cursor cursor)
           
 ExportUtil.Builder setDatabase(Database db)
           
 ExportUtil.Builder setDelimiter(String delim)
           
 ExportUtil.Builder setFileNameExtension(String ext)
           
 ExportUtil.Builder setFilter(ExportFilter filter)
           
 ExportUtil.Builder setHeader(boolean header)
           
 ExportUtil.Builder setQuote(char quote)
           
 ExportUtil.Builder setTableName(String tableName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportUtil.Builder

public ExportUtil.Builder(Database db)

ExportUtil.Builder

public ExportUtil.Builder(Database db,
                          String tableName)

ExportUtil.Builder

public ExportUtil.Builder(Cursor cursor)
Method Detail

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.