Class POIFSReaderRegistry

java.lang.Object
org.docx4j.org.apache.poi.poifs.eventfilesystem.POIFSReaderRegistry

class POIFSReaderRegistry extends Object
A registry for POIFSReaderListeners and the DocumentDescriptors of the documents those listeners are interested in
Version:
%I%, %G%
  • Field Details

    • omnivorousListeners

      private Set omnivorousListeners
    • selectiveListeners

      private Map selectiveListeners
    • chosenDocumentDescriptors

      private Map chosenDocumentDescriptors
  • Constructor Details

    • POIFSReaderRegistry

      POIFSReaderRegistry()
      Construct the registry
  • Method Details

    • registerListener

      void registerListener(POIFSReaderListener listener, POIFSDocumentPath path, String documentName)
      register a POIFSReaderListener for a particular document
      Parameters:
      listener - the listener
      path - the path of the document of interest
      documentName - the name of the document of interest
    • registerListener

      void registerListener(POIFSReaderListener listener)
      register for all documents
      Parameters:
      listener - the listener who wants to get all documents
    • getListeners

      Iterator getListeners(POIFSDocumentPath path, String name)
      get am iterator of listeners for a particular document
      Parameters:
      path - the document path
      name - the name of the document
      Returns:
      an Iterator POIFSReaderListeners; may be empty
    • removeSelectiveListener

      private void removeSelectiveListener(POIFSReaderListener listener)
    • dropDocument

      private void dropDocument(POIFSReaderListener listener, DocumentDescriptor descriptor)