public class POIFSReader
extends java.lang.Object
Constructor and Description |
---|
POIFSReader()
Create a POIFSReader
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
read in files
|
void |
read(java.io.InputStream stream)
Read from an InputStream and process the documents we get
|
void |
registerListener(POIFSReaderListener listener)
Register a POIFSReaderListener for all documents
|
void |
registerListener(POIFSReaderListener listener,
POIFSDocumentPath path,
java.lang.String name)
Register a POIFSReaderListener for a document in the specified
directory
|
void |
registerListener(POIFSReaderListener listener,
java.lang.String name)
Register a POIFSReaderListener for a document in the root
directory
|
public void read(java.io.InputStream stream) throws java.io.IOException
stream
- the InputStream from which to read the datajava.io.IOException
- on errors reading, or on invalid datapublic void registerListener(POIFSReaderListener listener)
listener
- the listener to be registeredjava.lang.NullPointerException
- if listener is nulljava.lang.IllegalStateException
- if read() has already been
calledpublic void registerListener(POIFSReaderListener listener, java.lang.String name)
listener
- the listener to be registeredname
- the document namejava.lang.NullPointerException
- if listener is null or name is
null or emptyjava.lang.IllegalStateException
- if read() has already been
calledpublic void registerListener(POIFSReaderListener listener, POIFSDocumentPath path, java.lang.String name)
listener
- the listener to be registeredpath
- the document path; if null, the root directory is
assumedname
- the document namejava.lang.NullPointerException
- if listener is null or name is
null or emptyjava.lang.IllegalStateException
- if read() has already been
calledpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- names of the filesjava.io.IOException
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.