com.atlassian.bonnie.search.extractor
Class PowerPointListener

java.lang.Object
  extended bycom.atlassian.bonnie.search.extractor.PowerPointListener
All Implemented Interfaces:
org.apache.poi.poifs.eventfilesystem.POIFSReaderListener

public class PowerPointListener
extends java.lang.Object
implements org.apache.poi.poifs.eventfilesystem.POIFSReaderListener

Listener for responding to read events thrown when reading a powerpoint document. This implementation is largely based on org.apache.poi.hslf.extractor.QuickButCruddyTextExtractor (the findTextRecords(int,byte[]) has been copied and adapted). This listener is able to extract unicode text.


Field Summary
static java.util.Set IGNORED_PREFIXES
           
static java.util.Set IGNORED_TEXT
           
 
Constructor Summary
PowerPointListener(java.lang.StringBuffer buff)
           
 
Method Summary
 int findTextRecords(int startPos, byte[] documentBytes)
           
 void processPOIFSReaderEvent(org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORED_TEXT

public static final java.util.Set IGNORED_TEXT

IGNORED_PREFIXES

public static final java.util.Set IGNORED_PREFIXES
Constructor Detail

PowerPointListener

public PowerPointListener(java.lang.StringBuffer buff)
Method Detail

processPOIFSReaderEvent

public void processPOIFSReaderEvent(org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent event)
Specified by:
processPOIFSReaderEvent in interface org.apache.poi.poifs.eventfilesystem.POIFSReaderListener

findTextRecords

public int findTextRecords(int startPos,
                           byte[] documentBytes)


Copyright © 2006-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.