Package org.esa.snap.core.dataio
Class ProductIOPlugInManager
java.lang.Object
org.esa.snap.core.dataio.ProductIOPlugInManager
The
ProductIOPlugInManager class is used to manage all registered reader and writer plug-ins.
This class implements the singleton design pattern, since only one manager instance is required in the system.
- Version:
- $Revision$ $Date$
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor - singleton -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReaderPlugIn(ProductReaderPlugIn readerPlugIn) Registers the specified reader plug-in by adding it to this manager.voidaddWriterPlugIn(ProductWriterPlugIn writerPlugIn) Registers the specified writer plug-in by adding it to this manager.String[]Returns aString[]which contains all the product reader format strings of registered product readers, never Null.String[]Returns aString[]which contains all the product writer format strings of registered product writers, never Null.Gets all registered reader plug-ins.Gets all registered writer plug-ins.static ProductIOPlugInManagerGets this's managers singleton instance.getReaderPlugIns(String formatName) Gets all reader plug-ins which support the given format name.getWriterPlugIns(String formatName) Gets all writer plug-ins which support the given format name.booleanremoveReaderPlugIn(ProductReaderPlugIn readerPlugIn) Removes the first occurrence of the specified reader plug-in.booleanremoveWriterPlugIn(ProductWriterPlugIn writerPlugIn) Removes the first occurrence of the specified writer plug-in.
-
Constructor Details
-
ProductIOPlugInManager
protected ProductIOPlugInManager()Protected constructor - singleton
-
-
Method Details
-
getInstance
Gets this's managers singleton instance. -
getAllReaderPlugIns
Gets all registered reader plug-ins. In the case that no reader plug-ins are registered, an empty iterator is returned.- Returns:
- an iterator containing all registered reader plug-ins
-
getReaderPlugIns
Gets all reader plug-ins which support the given format name. In the case that no reader plug-in is found, an empty iterator is returned.- Parameters:
formatName- the name of the format, must not benull- Returns:
- an iterator containing all reader plug-ins supporting the given format
-
addReaderPlugIn
Registers the specified reader plug-in by adding it to this manager. If the given reader plug-in isnull, nothing happens.- Parameters:
readerPlugIn- the reader plug-in to be added to this manager
-
removeReaderPlugIn
Removes the first occurrence of the specified reader plug-in. If this manager does not contain the reader, it is unchanged.- Parameters:
readerPlugIn- the reader plug-in to be removed from this manager, if present- Returns:
trueif this manager contained the specified reader plug-in
-
getAllWriterPlugIns
Gets all registered writer plug-ins. In the case that no writer plug-ins are registered, an empty iterator is returned.- Returns:
- an iterator containing all registered writer plug-ins
-
getWriterPlugIns
Gets all writer plug-ins which support the given format name. In the case that no writer plug-in is found, an empty iterator is returned.- Parameters:
formatName- the name of the format, must not benull- Returns:
- an iterator containing all writer plug-ins supporting the given format
-
addWriterPlugIn
Registers the specified writer plug-in by adding it to this manager. If the given writer plug-in isnull, nothing happens.- Parameters:
writerPlugIn- the writer plug-in to be added to this manager
-
removeWriterPlugIn
Removes the first occurrence of the specified writer plug-in. If this manager does not contain the writer, it is unchanged.- Parameters:
writerPlugIn- the writer plug-in to be removed from this manager, if present- Returns:
trueif this manager contained the specified writer plug-in
-
getAllProductWriterFormatStrings
Returns aString[]which contains all the product writer format strings of registered product writers, never Null.- Returns:
- a
String[]which contains all the product writer format strings of registered product writers.
-
getAllProductReaderFormatStrings
Returns aString[]which contains all the product reader format strings of registered product readers, never Null.- Returns:
- a
String[]which contains all the product reader format strings of registered product reader.
-