Top Description Fields Constructors Methods
org.apache.poi.poifs.eventfilesystem

pack-priv Class POIFSReaderRegistry

extends Object
Class Inheritance
Imports
java.util.*, org.apache.poi.poifs.filesystem.DocumentDescriptor, .POIFSDocumentPath

A registry for POIFSReaderListeners and the DocumentDescriptors of the documents those listeners are interested in

Field Summary

Modifier and TypeField and Description
private Map<DocumentDescriptor, Set<POIFSReaderListener>>
private Set<POIFSReaderListener>
private Map<POIFSReaderListener, Set<DocumentDescriptor>>

Constructor Summary

AccessConstructor and Description
pack-priv
POIFSReaderRegistry()

Construct the registry

Method Summary

Modifier and TypeMethod and Description
private void
dropDocument(final POIFSReaderListener listener, final DocumentDescriptor descriptor)

pack-priv Iterable<POIFSReaderListener>

Returns:

an Iterator POIFSReaderListeners; may be empty
getListeners
(final POIFSDocumentPath
the document path
path
,
final String
the name of the document
name
)

get am iterator of listeners for a particular document

pack-priv void
registerListener(final POIFSReaderListener
the listener
listener
,
final POIFSDocumentPath
the path of the document of interest
path
,
final String
the name of the document of interest
documentName
)

register a POIFSReaderListener for a particular document

pack-priv void
registerListener(final POIFSReaderListener
the listener who wants to get all documents
listener
)

register for all documents

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chosenDocumentDescriptorsback to summary
private Map<DocumentDescriptor, Set<POIFSReaderListener>> chosenDocumentDescriptors
omnivorousListenersback to summary
private Set<POIFSReaderListener> omnivorousListeners
selectiveListenersback to summary
private Map<POIFSReaderListener, Set<DocumentDescriptor>> selectiveListeners

Constructor Detail

POIFSReaderRegistryback to summary
pack-priv POIFSReaderRegistry()

Construct the registry

Method Detail

dropDocumentback to summary
private void dropDocument(final POIFSReaderListener listener, final DocumentDescriptor descriptor)
getListenersback to summary
pack-priv Iterable<POIFSReaderListener> getListeners(final POIFSDocumentPath path, final String name)

get am iterator of listeners for a particular document

Parameters
path:POIFSDocumentPath

the document path

name:String

the name of the document

Returns:Iterable<POIFSReaderListener>

an Iterator POIFSReaderListeners; may be empty

registerListenerback to summary
pack-priv void registerListener(final POIFSReaderListener listener, final POIFSDocumentPath path, final String documentName)

register a POIFSReaderListener for a particular document

Parameters
listener:POIFSReaderListener

the listener

path:POIFSDocumentPath

the path of the document of interest

documentName:String

the name of the document of interest

registerListenerback to summary
pack-priv void registerListener(final POIFSReaderListener listener)

register for all documents

Parameters
listener:POIFSReaderListener

the listener who wants to get all documents

removeSelectiveListenerback to summary
private void removeSelectiveListener(final POIFSReaderListener listener)