src/ca/rmen/pdm/xls2html/main/Xls2Html.java
/**
     * Read the Excel file and return a list of Webpages which we can transform into HTML files.
     */
Read the Excel file and return a list of Webpages which we can transform into HTML files.
Read the Excel file and return a list of Webpages which we can transform into HTML files .
private static List<Webpage> readExcelFile(String filePath) {
        try {
            InputStream is = new FileInputStream(filePath);
            WorkbookSettings wbSettings = new WorkbookSettings();
            wbSettings.setEncoding("iso-8859-1");
            Workbook wb = Workbook.getWorkbook(is, wbSettings);
            return readBook(wb);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        } finally {
        }
    }
private static List < Webpage > readExcelFile ( String filePath ) { try { InputStream is = new FileInputStream ( filePath ) ; WorkbookSettings wbSettings = new WorkbookSettings ( ) ; wbSettings . setEncoding ( "iso-8859-1" ) ; Workbook wb = Workbook . getWorkbook ( is , wbSettings ) ; return readBook ( wb ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } finally { } }
Read the Excel file and return a list of Webpages which we can transform into HTML files.
Read the Excel file and return a list of Webpages which we can transform into HTML files .