org.apache.poi.hssf.usermodel.examples
Class EventExample

java.lang.Object
  extended by org.apache.poi.hssf.usermodel.examples.EventExample
All Implemented Interfaces:
HSSFListener

public class EventExample
extends java.lang.Object
implements HSSFListener

This example shows how to use the event API for reading a file.


Constructor Summary
EventExample()
           
 
Method Summary
static void main(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(java.lang.String[] args)
                 throws java.io.IOException
Read an excel file and spit out what we find.

Parameters:
args - Expect one argument that is the file to read.
Throws:
java.io.IOException - When there is an error processing the file.


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.