Giter Club home page Giter Club logo

java-excel's Introduction

基于Apache POI的JAVA Excel读写工具包

Introduction

java-excel是基于Apache POI的JAVA Excel读写工具。 写这个工具也是缘由一个项目的Excel读写需求,当我找遍了所有资料,发现没有一个通用的且比较高效的工具可以直接拿来使用,所以在这个项目结束后,对项目中所遇到的问题进行了总结,整理优化了相关代码,供大家学习交流,希望大家多提建议,如果对大家有帮助,我会努力维护好这个工具~

Features

  • 基于Apache POI,主要用于提供JAVA Excel读写功能;
  • 支持xls和xlsx,xlsx是通过XML方式进行读写,效率有大幅提升,有效防止写Excel时内存溢出;
  • 对POI进行了封装,支持自定义表头、标题、列及尾部的字体、颜色、对齐方式;
  • 支持二级标题,支持数据行的纵向合并;
  • 支持XLSX格式的大数据写入(数据量较大时建议使用xlsx格式进行写入);
  • 支持设置单元格边框(包括对合并单元格的边框设置);

当前仅支持这么多功能,如果对大家有用,后面将逐步完善其它功能,如果对你毫无帮助,请勿喷~

Invoke

ExcelWriter writer = ExcelWriterFactory.getWriter(ExcelType.XLSX);
writer.process(metadata, datas, "/Users/Robert/Desktop/QA_test/expense.xlsx");

如果在使用过程中有任何问题,欢迎提建议、吐槽~

email: [email protected]

java-excel's People

Contributors

luoyoubao avatar

Watchers

James Cloos avatar fly_fish avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.