mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Documented and deprecated deregisterProvider method.
This commit is contained in:
parent
850fba6d6c
commit
1fb7c3c7cf
@ -150,6 +150,7 @@ public class SVGImageReaderSpi extends ImageReaderSpi {
|
|||||||
return "Scaleable Vector Graphics (SVG) format image reader";
|
return "Scaleable Vector Graphics (SVG) format image reader";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"deprecation"})
|
||||||
@Override
|
@Override
|
||||||
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
||||||
if (!SVG_READER_AVAILABLE) {
|
if (!SVG_READER_AVAILABLE) {
|
||||||
|
@ -110,6 +110,7 @@ public class TIFFImageReaderSpi extends ImageReaderSpi {
|
|||||||
return "Tagged Image File Format (TIFF) image reader";
|
return "Tagged Image File Format (TIFF) image reader";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"deprecation"})
|
||||||
@Override
|
@Override
|
||||||
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
||||||
if (!TIFF_CLASSES_AVAILABLE) {
|
if (!TIFF_CLASSES_AVAILABLE) {
|
||||||
|
@ -92,6 +92,8 @@ public class TIFFImageWriterSpi extends ImageWriterSpi {
|
|||||||
return "Tagged Image File Format (TIFF) image writer";
|
return "Tagged Image File Format (TIFF) image writer";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"deprecation"})
|
||||||
|
@Override
|
||||||
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
||||||
if (!TIFFImageReaderSpi.TIFF_CLASSES_AVAILABLE) {
|
if (!TIFFImageReaderSpi.TIFF_CLASSES_AVAILABLE) {
|
||||||
IIOUtil.deregisterProvider(registry, this, category);
|
IIOUtil.deregisterProvider(registry, this, category);
|
||||||
|
@ -112,6 +112,7 @@ public class WMFImageReaderSpi extends ImageReaderSpi {
|
|||||||
return "Windows Meta File (WMF) image reader";
|
return "Windows Meta File (WMF) image reader";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"deprecation"})
|
||||||
@Override
|
@Override
|
||||||
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
||||||
if (!WMF_READER_AVAILABLE) {
|
if (!WMF_READER_AVAILABLE) {
|
||||||
|
@ -61,8 +61,14 @@ public final class IIOUtil {
|
|||||||
return new BufferedOutputStream(new IIOOutputStreamAdapter(pStream));
|
return new BufferedOutputStream(new IIOOutputStreamAdapter(pStream));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* THIS METHOD WILL ME MOVED/RENAMED, DO NOT USE.
|
* 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) {
|
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
|
// http://www.ibm.com/developerworks/java/library/j-jtp04298.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user