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

The following examples show how to use org.apache.poi.poifs.eventfilesystem.POIFSReader#read() . These examples are extracted from open source projects. 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 Project: olat   File: PPT2Text.java    License: 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 Project: olat   File: PowerPointDocument.java    License: 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);
}