public class POIFSReader extends Object
| Constructor and Description | 
|---|
POIFSReader()
Create a POIFSReader 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
main(String[] args)
read in files 
 | 
void | 
read(RandomAccessInputStream stream,
    int size)
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,
                String name)
Register a POIFSReaderListener for a document in the specified
 directory 
 | 
void | 
registerListener(POIFSReaderListener listener,
                String name)
Register a POIFSReaderListener for a document in the root
 directory 
 | 
public void read(RandomAccessInputStream stream, int size) throws IOException
stream - the InputStream from which to read the dataIOException - on errors reading, or on invalid datapublic void registerListener(POIFSReaderListener listener)
listener - the listener to be registeredNullPointerException - if listener is nullIllegalStateException - if read() has already been
                                  calledpublic void registerListener(POIFSReaderListener listener, String name)
listener - the listener to be registeredname - the document nameNullPointerException - if listener is null or name is
                                 null or emptyIllegalStateException - if read() has already been
                                  calledpublic void registerListener(POIFSReaderListener listener, POIFSDocumentPath path, String name)
listener - the listener to be registeredpath - the document path; if null, the root directory is
             assumedname - the document nameNullPointerException - if listener is null or name is
                                 null or emptyIllegalStateException - if read() has already been
                                  calledpublic static void main(String[] args) throws IOException
args - names of the filesIOExceptionCopyright © 2014 Open Microscopy Environment