class POIFSReaderRegistry extends Object
Modifier and Type | Field and Description |
---|---|
private Map |
chosenDocumentDescriptors |
private Set |
omnivorousListeners |
private Map |
selectiveListeners |
Constructor and Description |
---|
POIFSReaderRegistry()
Construct the registry
|
Modifier and Type | Method and Description |
---|---|
private void |
dropDocument(POIFSReaderListener listener,
DocumentDescriptor descriptor) |
(package private) Iterator |
getListeners(POIFSDocumentPath path,
String name)
get am iterator of listeners for a particular document
|
(package private) void |
registerListener(POIFSReaderListener listener)
register for all documents
|
(package private) void |
registerListener(POIFSReaderListener listener,
POIFSDocumentPath path,
String documentName)
register a POIFSReaderListener for a particular document
|
private void |
removeSelectiveListener(POIFSReaderListener listener) |
private Set omnivorousListeners
private Map selectiveListeners
private Map chosenDocumentDescriptors
void registerListener(POIFSReaderListener listener, POIFSDocumentPath path, String documentName)
listener
- the listenerpath
- the path of the document of interestdocumentName
- the name of the document of interestvoid registerListener(POIFSReaderListener listener)
listener
- the listener who wants to get all documentsIterator getListeners(POIFSDocumentPath path, String name)
path
- the document pathname
- the name of the documentprivate void removeSelectiveListener(POIFSReaderListener listener)
private void dropDocument(POIFSReaderListener listener, DocumentDescriptor descriptor)
Copyright © 2015 Open Microscopy Environment