# table-to-xls **Repository Path**: tsqc/table-to-xls ## Basic Information - **Project Name**: table-to-xls - **Description**: HTML Table To Excel - **Primary Language**: Java - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 24 - **Created**: 2017-01-15 - **Last Updated**: 2021-03-15 ## 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