top of page

Welcome
to NumpyNinja Blogs

NumpyNinja: Blogs. Demystifying Tech,

One Blog at a Time.
Millions of views. 

Fillo API

Fillo is a Java API that is used to fetch data from Excel files. Fillo is one of Codoid’s open-source products and serves as a smart alternative to traditional Excel reading APIs


Why Fillo API?

Earlier Jxl API for doing parameterise, later Apache POI came into the market and in both of these API’s we need to write big code, to traverse the rows and columns and fetch the values stored in an excel sheet But now with this new Fillo API, there’s no need to worry about the size of rows and columns, everything will be taken care of by the API internally.


Difference between Fillo and Apache POI


  • Fillo API supports CRUD operations with SQL queries, but Apache POI supports CRUD operations with a lot of Java programming code. Writing a filter condition for an Excel utility using Apache POI was found to be a cumbersome activity. The framework implementation kept on growing. 


How to implement?


Fillo provides an intuitive way to perform common operations like reading and writing Excel data using basic SQL, as shown below

Step 1. Add dependency in pom.xml

pom.xml
pom.xml
Step 2: Example Excel file with TestData

TestData.xlsx
TestData.xlsx

Step 3: Execution Steps to Be Followed for Reading an Excel Sheet
  • Create an Object of the Fillo Class.


  • Create an Object for the Connection class to establish the connection between the Excel sheet and the Fillo API’s.


ree

  • Write the Query.


    ree

  • Execute the Select query and store the result in a Recordset class present in the Fillo API.Recordset recordset = connection.executequery(query);


ree

  • Create a loop for fetching all data from the Excel sheet.


ree

  • Close the recordset to avoid a memory leak recordset.close();

  • Close the connection to avoid a memory leak connection.close();

           

ree

Conclusion

  • Fillo is a very useful Java API for extracting data from an Excel sheet, and it supports both .xls as well as .xlsx Excel files.

  • SQL-like querying: No need for complex parsing logic.

  •  Versatile: Works well for both small tasks and large Excel files with hundreds of records.

  • -Seamless integration with Selenium and other Java-based frameworks.



In the next article, we’ll demonstrate how to integrate Fillo into a Cucumber framework. Stay tuned!



Happy Learning!!

+1 (302) 200-8320

NumPy_Ninja_Logo (1).png

Numpy Ninja Inc. 8 The Grn Ste A Dover, DE 19901

© Copyright 2025 by Numpy Ninja Inc.

  • Twitter
  • LinkedIn
bottom of page