# table-to-xls **Repository Path**: gitwork/table-to-xls ## Basic Information - **Project Name**: table-to-xls - **Description**: HTML Table To Excel - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 24 - **Created**: 2014-10-30 - **Last Updated**: 2022-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Table To Xls ## Preview ![HTML Table](http://git.oschina.net/chyxion/table-to-xls/raw/master/html.png) Result ![XLS Result](http://git.oschina.net/chyxion/table-to-xls/raw/master/xls.png) ## Usage ```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("data.xls"); fout.write(TableToXls.process(html)); fout.close(); ``` ## Contacts chyxion@163.com