# table-to-xls **Repository Path**: lilitea/table-to-xls ## Basic Information - **Project Name**: table-to-xls - **Description**: HTML Table To Excel - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 24 - **Created**: 2016-05-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Table To Xls ## Preview ![HTML Table](/doc/html.png) Result ![XLS Result](/doc/xls.png) ## Usage ### Add Maven Dependency ```xml me.chyxion table-to-xls 0.0.1-RELEASE ``` ### Use In Code ```java StringBuilder html = new StringBuilder(); Scanner s = new Scanner(getClass().getResourceAsStream("/sample.html"), "utf-8"); while (s.hasNext()) { html.append(s.nextLine()); } s.close(); FileOutputStream fout = new FileOutputStream("target/data.xls"); TableToXls.process(html, fout); fout.close(); ``` ## Contact chyxion@163.com