Package jslx.excel
Class ExcelTesting
- java.lang.Object
-
- jslx.excel.ExcelTesting
-
public class ExcelTesting extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.file.PathexcelDir
-
Constructor Summary
Constructors Constructor Description ExcelTesting()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateWorkBookTest(java.lang.String wbName)Creates an Excel workbook in the current working directory with the provided name and writes some things to its first sheetstatic voidmain(java.lang.String[] args)static voidreadWorkBookTest(java.lang.String wbName)Tests the opening of a workbook in the current working directory with the supplied name reading from its first sheet.static voidwriteResultsToWorkbookWorkSheetTest1(java.lang.String sheetName)static voidwriteSheetAsCSVTest()Tests the writing an Excel sheet to a comma separated value file.static voidwriteWorkbookAsCSVTest()Tests the writing an Excel workbook to a set of comma separated value files.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.sql.SQLException- Throws:
java.io.IOExceptionjava.sql.SQLException
-
writeResultsToWorkbookWorkSheetTest1
public static void writeResultsToWorkbookWorkSheetTest1(java.lang.String sheetName)
-
createWorkBookTest
public static void createWorkBookTest(java.lang.String wbName)
Creates an Excel workbook in the current working directory with the provided name and writes some things to its first sheet- Parameters:
wbName- the name of the workbook
-
readWorkBookTest
public static void readWorkBookTest(java.lang.String wbName)
Tests the opening of a workbook in the current working directory with the supplied name reading from its first sheet.- Parameters:
wbName- the name to read
-
writeSheetAsCSVTest
public static void writeSheetAsCSVTest() throws java.io.IOExceptionTests the writing an Excel sheet to a comma separated value file. Depends on having ColonialTemp.xlsx in the current working directory- Throws:
java.io.IOException- the checked exception
-
writeWorkbookAsCSVTest
public static void writeWorkbookAsCSVTest() throws java.io.IOExceptionTests the writing an Excel workbook to a set of comma separated value files. Depends on having ColonialTemp.xlsx in the current working directory Writes to a directory called excelOutput in the current working directory- Throws:
java.io.IOException- the checked exception
-
-