congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ImageOutputStreamSpi.onRegistration
Code IndexAdd Tabnine to your IDE (free)

How to use
onRegistration
method
in
javax.imageio.spi.ImageOutputStreamSpi

Best Java code snippets using javax.imageio.spi.ImageOutputStreamSpi.onRegistration (Showing top 2 results out of 315)

origin: geosolutions-it/imageio-ext

/**
 * Upon registration, this method ensures that this SPI will be invoked
 * before the default FileImageOutputStreamSpi
 * 
 * @param registry
 *                ServiceRegistry where this object has been registered.
 * @param category
 *                a Class object indicating the registry category under
 *                which this object has been registered.
 */
@SuppressWarnings("unchecked")
public void onRegistration(ServiceRegistry registry, Class category) {
  super.onRegistration(registry, category);
  Object other;
  final Class targetClass = ImageOutputStreamSpi.class;
  for (Iterator i = registry.getServiceProviders(targetClass, true); i.hasNext();) {
    other = i.next();
    // using class name to avoid warnings in JDK 11
    if (other != null && other.getClass().getName().equals("com.sun.imageio.spi.FileImageOutputStreamSpi"))
      registry.deregisterServiceProvider(other);
    if (this != other) {
      registry.setOrdering(targetClass, this, other);
    }
  }
}
origin: it.geosolutions.imageio-ext/imageio-ext-customstreams

/**
 * Upon registration, this method ensures that this SPI will be invoked
 * before the default FileImageOutputStreamSpi
 * 
 * @param registry
 *                ServiceRegistry where this object has been registered.
 * @param category
 *                a Class object indicating the registry category under
 *                which this object has been registered.
 */
@SuppressWarnings("unchecked")
public void onRegistration(ServiceRegistry registry, Class category) {
  super.onRegistration(registry, category);
  Object other;
  final Class targetClass = ImageOutputStreamSpi.class;
  for (Iterator i = registry.getServiceProviders(targetClass, true); i.hasNext();) {
    other = i.next();
    if (other instanceof FileImageOutputStreamSpi)
      registry.deregisterServiceProvider(other);
    if (this != other) {
      registry.setOrdering(targetClass, this, other);
    }
  }
}
javax.imageio.spiImageOutputStreamSpionRegistration

Popular methods of ImageOutputStreamSpi

  • createOutputStreamInstance
  • getOutputClass

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • JPanel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now