Class EventExample
- java.lang.Object
-
- org.apache.poi.examples.hssf.usermodel.EventExample
-
- All Implemented Interfaces:
HSSFListener
public class EventExample extends Object implements HSSFListener
This example shows how to use the event API for reading a file.
-
-
Constructor Summary
Constructors Constructor Description EventExample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Read an excel file and spit out what we find.void
processRecord(Record record)
This method listens for incoming records and handles them as required.
-
-
-
Method Detail
-
processRecord
public void processRecord(Record record)
This method listens for incoming records and handles them as required.- Specified by:
processRecord
in interfaceHSSFListener
- Parameters:
record
- The record that was found while reading.
-
main
public static void main(String[] args) throws IOException
Read an excel file and spit out what we find.- Parameters:
args
- Expect one argument that is the file to read.- Throws:
IOException
- When there is an error processing the file.
-
-