26 Star 52 Fork 19

Shaun Chyxion / table-to-xls

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 693 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Shaun Chyxion 提交于 2015-12-31 21:45 . move images to doc

#Table To Xls

Preview

HTML Table

Result

XLS Result

Usage

Add Maven Dependency

    <dependency>
        <groupId>me.chyxion</groupId>
        <artifactId>table-to-xls</artifactId>
        <version>0.0.1-RELEASE</version>
    </dependency>

Use In Code

    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

评论 ( 0 )

你可以在登录后,发表评论

Java
1
https://gitee.com/chyxion/table-to-xls.git
git@gitee.com:chyxion/table-to-xls.git
chyxion
table-to-xls
table-to-xls
master

搜索帮助