| java.lang.Object org.apache.poi.poifs.eventfilesystem.POIFSReader
POIFSReader | public class POIFSReader (Code) | | An event-driven reader for POIFS file systems. Users of this class
first create an instance of it, then use the registerListener
methods to register POIFSReaderListener instances for specific
documents. Once all the listeners have been registered, the read()
method is called, which results in the listeners being notified as
their documents are read.
author: Marc Johnson (mjohnson at apache dot org) |
POIFSReader | public POIFSReader()(Code) | | Create a POIFSReader
|
read | public void read(InputStream stream) throws IOException(Code) | | Read from an InputStream and process the documents we get
Parameters: stream - the InputStream from which to read the data exception: IOException - on errors reading, or on invalid data |
registerListener | public void registerListener(POIFSReaderListener listener, String name)(Code) | | Register a POIFSReaderListener for a document in the root
directory
Parameters: listener - the listener to be registered Parameters: name - the document name exception: NullPointerException - if listener is null or name isnull or empty exception: IllegalStateException - if read() has already beencalled |
registerListener | public void registerListener(POIFSReaderListener listener, POIFSDocumentPath path, String name)(Code) | | Register a POIFSReaderListener for a document in the specified
directory
Parameters: listener - the listener to be registered Parameters: path - the document path; if null, the root directory isassumed Parameters: name - the document name exception: NullPointerException - if listener is null or name isnull or empty exception: IllegalStateException - if read() has already beencalled |
|
|