Documented and deprecated deregisterProvider method.

This commit is contained in:
Harald Kuhr 2009-10-16 22:48:20 +02:00
parent 850fba6d6c
commit 1fb7c3c7cf
5 changed files with 12 additions and 1 deletions

View File

@ -150,6 +150,7 @@ public class SVGImageReaderSpi extends ImageReaderSpi {
return "Scaleable Vector Graphics (SVG) format image reader";
}
@SuppressWarnings({"deprecation"})
@Override
public void onRegistration(ServiceRegistry registry, Class<?> category) {
if (!SVG_READER_AVAILABLE) {

View File

@ -110,6 +110,7 @@ public class TIFFImageReaderSpi extends ImageReaderSpi {
return "Tagged Image File Format (TIFF) image reader";
}
@SuppressWarnings({"deprecation"})
@Override
public void onRegistration(ServiceRegistry registry, Class<?> category) {
if (!TIFF_CLASSES_AVAILABLE) {

View File

@ -92,6 +92,8 @@ public class TIFFImageWriterSpi extends ImageWriterSpi {
return "Tagged Image File Format (TIFF) image writer";
}
@SuppressWarnings({"deprecation"})
@Override
public void onRegistration(ServiceRegistry registry, Class<?> category) {
if (!TIFFImageReaderSpi.TIFF_CLASSES_AVAILABLE) {
IIOUtil.deregisterProvider(registry, this, category);

View File

@ -112,6 +112,7 @@ public class WMFImageReaderSpi extends ImageReaderSpi {
return "Windows Meta File (WMF) image reader";
}
@SuppressWarnings({"deprecation"})
@Override
public void onRegistration(ServiceRegistry registry, Class<?> category) {
if (!WMF_READER_AVAILABLE) {

View File

@ -61,8 +61,14 @@ public final class IIOUtil {
return new BufferedOutputStream(new IIOOutputStreamAdapter(pStream));
}
/*
/**
* THIS METHOD WILL ME MOVED/RENAMED, DO NOT USE.
*
* @param pRegistry the registry to unregister from
* @param pProvider the provider to unregister
* @param pCategory the category to unregister from
*
* @deprecated
*/
public static <T> void deregisterProvider(final ServiceRegistry pRegistry, final IIOServiceProvider pProvider, final Class<T> pCategory) {
// http://www.ibm.com/developerworks/java/library/j-jtp04298.html