public class DataTableUtil extends Object
| Constructor and Description |
|---|
DataTableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dataTableToExcel(DataTable dt,
OutputStream os) |
static void |
dataTableToExcel(DataTable dt,
OutputStream os,
String[] columnNames,
String[] widths,
boolean is2007) |
static void |
dataTableToExcel(DataTable dt,
org.apache.poi.ss.usermodel.Sheet sheet,
String[] columnNames,
String[] widths) |
static void |
dataTableToExcel(DataTable dt,
String fileName) |
static void |
dataTableToExcel(DataTable dt,
String fileName,
String[] columnNames,
String[] widths) |
static String |
dataTableToTxt(DataTable dt) |
static String |
dataTableToTxt(DataTable dt,
String[] columnNames,
String fieldspliter,
String rowspliter) |
static String |
dataTableToTxt(DataTable dt,
String fieldspliter,
String rowspliter) |
static void |
dataTableToWord(DataTable[] dt,
OutputStream os) |
static void |
dataTableToWord(DataTable[] dt,
OutputStream os,
String[] columnNames,
String[] widths) |
static void |
dataTableToWord(DataTable[] dt,
String fileName) |
static void |
dataTableToWord(DataTable[] dt,
String fileName,
String[] columnNames,
String[] widths) |
static void |
dataTableToWord(DataTable dt,
org.apache.poi.xwpf.usermodel.XWPFTable table,
String[] columnNames,
String[] widths) |
static DataTable |
extendBackupData(DataTable dt,
String sql,
String key) |
static int |
htmlTableToExcel(org.apache.poi.ss.usermodel.Sheet sheet,
List<HtmlTR> trs,
org.apache.poi.ss.usermodel.CellStyle styleBorderNormal,
String[] digits,
int tchidrenSize,
String[] indexes,
String[] rows,
int r) |
static void |
htmlTableToExcel(org.apache.poi.ss.usermodel.Workbook wb,
OutputStream os,
HtmlTable table,
String[] widths,
String[] indexes,
String[] rows,
String sheetName) |
static void |
main(String[] args) |
static void |
prepareHtmlTableToExcel(OutputStream os,
DataGridAction dga,
DataTable dataSource,
String xls,
String strIndexes,
String strRows,
String strWidths) |
static void |
prepareHtmlTableToExcel(OutputStream os,
DataGridAction dga,
String rowTotal,
String excelPageFlag,
String pageIndex,
String pageSize,
String pageFlag,
String method,
String xls,
String strIndexes,
String strRows,
String strWidths,
int pageLimit) |
static Mapx<String,DataTable> |
splitDataTableByColumn(DataTable dt,
String column) |
static DataTable |
txtToDataTable(String content) |
static DataTable |
txtToDataTable(String content,
String[] columnNames) |
static DataTable |
txtToDataTable(String content,
String[] columnNames,
String fieldspliter,
String rowspliter) |
static DataTable |
txtToDataTable(String content,
String fieldspliter,
String rowspliter) |
static DataTable |
xlsToDataTable(String fileName) |
static DataTable |
xlsToDataTable(String fileName,
int sheetNo) |
static DataTable |
xlsToDataTable(String fileName,
String sheetName) |
static DataTable |
xlsToDataTable(org.apache.poi.ss.usermodel.Workbook book,
int sheetNo) |
public static void main(String[] args)
public static DataTable txtToDataTable(String content, String fieldspliter, String rowspliter)
public static DataTable txtToDataTable(String content, String[] columnNames, String fieldspliter, String rowspliter)
public static String dataTableToTxt(DataTable dt, String fieldspliter, String rowspliter)
public static String dataTableToTxt(DataTable dt, String[] columnNames, String fieldspliter, String rowspliter)
public static void dataTableToExcel(DataTable dt, String fileName, String[] columnNames, String[] widths)
public static void dataTableToExcel(DataTable dt, OutputStream os)
public static void dataTableToExcel(DataTable dt, OutputStream os, String[] columnNames, String[] widths, boolean is2007)
public static void dataTableToExcel(DataTable dt, org.apache.poi.ss.usermodel.Sheet sheet, String[] columnNames, String[] widths)
public static DataTable xlsToDataTable(String fileName) throws Exception
Exceptionpublic static DataTable xlsToDataTable(String fileName, String sheetName) throws Exception
Exceptionpublic static DataTable xlsToDataTable(String fileName, int sheetNo) throws Exception
Exceptionpublic static DataTable xlsToDataTable(org.apache.poi.ss.usermodel.Workbook book, int sheetNo) throws Exception
Exceptionpublic static void dataTableToWord(DataTable dt, org.apache.poi.xwpf.usermodel.XWPFTable table, String[] columnNames, String[] widths)
public static void dataTableToWord(DataTable[] dt, String fileName, String[] columnNames, String[] widths)
public static void dataTableToWord(DataTable[] dt, OutputStream os)
public static void dataTableToWord(DataTable[] dt, OutputStream os, String[] columnNames, String[] widths)
public static void prepareHtmlTableToExcel(OutputStream os, DataGridAction dga, DataTable dataSource, String xls, String strIndexes, String strRows, String strWidths)
public static void htmlTableToExcel(org.apache.poi.ss.usermodel.Workbook wb,
OutputStream os,
HtmlTable table,
String[] widths,
String[] indexes,
String[] rows,
String sheetName)
public static void prepareHtmlTableToExcel(OutputStream os, DataGridAction dga, String rowTotal, String excelPageFlag, String pageIndex, String pageSize, String pageFlag, String method, String xls, String strIndexes, String strRows, String strWidths, int pageLimit)
public static int htmlTableToExcel(org.apache.poi.ss.usermodel.Sheet sheet,
List<HtmlTR> trs,
org.apache.poi.ss.usermodel.CellStyle styleBorderNormal,
String[] digits,
int tchidrenSize,
String[] indexes,
String[] rows,
int r)
Copyright © 2016. All Rights Reserved.