public class ExcelUtil extends Object
| Constructor and Description |
|---|
ExcelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
export(String name,
Table t)
Deprecated.
use
void exportXls(String name, Table t) instead. |
static void |
exportCsv(String name,
Table t,
String chartsetName) |
static void |
exportCsv(Table t,
String chartsetName,
OutputStream out) |
static void |
exportCsvZip(String name,
Table t,
String charsetName) |
static void |
exportSXlsx(String name,
Table t) |
static void |
exportTxt(String name,
Table t,
String chartsetName) |
static void |
exportXls(String name,
Table t) |
static void |
exportXlsx(String name,
Table t)
Prefira
void exportSXlsx(String name, Table t) por fazer cache em disco e ser mais otimizado |
static int |
getColumnIndexByColumnName(String columnName) |
static String |
getColumnNameByColumnIndex(int columnIndex) |
static File |
getCsvFile(Table t,
File f,
String charsetName) |
static File |
getCsvFile(Table t,
String fileName,
String charsetName) |
static File |
getSvFile(Table t,
String file,
String charsetName,
char separator) |
static File |
getXlsFile(Table t,
String file) |
@Deprecated public static void export(String name, Table t) throws IOException
void exportXls(String name, Table t) instead.IOExceptionpublic static void exportXls(String name, Table t) throws IOException
IOExceptionpublic static void exportXlsx(String name, Table t) throws IOException
void exportSXlsx(String name, Table t) por fazer cache em disco e ser mais otimizadoname - t - IOExceptionpublic static void exportSXlsx(String name, Table t) throws IOException
IOExceptionpublic static void exportCsvZip(String name, Table t, String charsetName) throws IOException
IOExceptionpublic static void exportCsv(String name, Table t, String chartsetName) throws IOException
IOExceptionpublic static void exportTxt(String name, Table t, String chartsetName) throws IOException
IOExceptionpublic static void exportCsv(Table t, String chartsetName, OutputStream out) throws IOException
IOExceptionpublic static File getCsvFile(Table t, String fileName, String charsetName) throws IOException
IOExceptionpublic static File getCsvFile(Table t, File f, String charsetName) throws IOException
IOExceptionpublic static File getSvFile(Table t, String file, String charsetName, char separator) throws IOException
IOExceptionpublic static File getXlsFile(Table t, String file) throws IOException
IOExceptionpublic static int getColumnIndexByColumnName(String columnName)
public static String getColumnNameByColumnIndex(int columnIndex)
Copyright © 2017 TecSinapse. All rights reserved.