Class 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 Detail

      • EventExample

        public EventExample()
    • Method Detail

      • processRecord

        public void processRecord​(Record record)
        This method listens for incoming records and handles them as required.
        Specified by:
        processRecord in interface HSSFListener
        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.