public class XLSTools extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_ATTRIBUTE_KEY |
static String |
TYPE |
Constructor and Description |
---|
XLSTools() |
Modifier and Type | Method and Description |
---|---|
static Cell[][] |
createArray(int x,
int y) |
static Cell[][] |
getArray(ContentContext ctx,
File file) |
static Cell[][] |
getCellArray(String[][] array) |
static List<Map<String,Cell>> |
getItems(ContentContext ctx,
Cell[][] data) |
protected static Cell[][] |
getXLSArray(ContentContext ctx,
File xslxFile) |
protected static Cell[][] |
getXLSXArray(ContentContext ctx,
File xslxFile) |
static void |
main(String[] args) |
protected static String |
renderCell(String content) |
static void |
writeXLS(Cell[][] array,
OutputStream out) |
static void |
writeXLSX(Cell[][] array,
OutputStream out) |
public static final String REQUEST_ATTRIBUTE_KEY
public static final String TYPE
public static Cell[][] getArray(ContentContext ctx, File file) throws Exception
Exception
protected static Cell[][] getXLSXArray(ContentContext ctx, File xslxFile) throws Exception
Exception
protected static Cell[][] getXLSArray(ContentContext ctx, File xslxFile) throws Exception
Exception
public static void writeXLS(Cell[][] array, OutputStream out) throws IOException
IOException
public static void writeXLSX(Cell[][] array, OutputStream out) throws IOException
IOException
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.