Java Code Examples for org.apache.poi.poifs.eventfilesystem.POIFSReader#registerListener()

The following examples show how to use org.apache.poi.poifs.eventfilesystem.POIFSReader#registerListener() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PPT2Text.java    From olat with Apache License 2.0 4 votes vote down vote up
public static void extractText(final InputStream inStream, final OutputStream stream) throws IOException {
    final POIFSReader r = new POIFSReader();
    /* Register a listener for *all* documents. */
    r.registerListener(new MyPOIFSReaderListener(stream));
    r.read(inStream);
}
 
Example 2
Source File: PowerPointDocument.java    From olat with Apache License 2.0 4 votes vote down vote up
private static void extractText(final InputStream inStream, final OutputStream stream) throws IOException {
    final POIFSReader r = new POIFSReader();
    /* Register a listener for *all* documents. */
    r.registerListener(new MyPOIFSReaderListener(stream));
    r.read(inStream);
}