org.mapfish.print.ImageIOPluginScanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of print-lib Show documentation
Show all versions of print-lib Show documentation
Library for generating PDFs and images from online webmapping services
package org.mapfish.print;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import javax.imageio.ImageIO;
/**
* Scans for ImageIO plugins when the application context is loaded.
*/
public final class ImageIOPluginScanner implements ApplicationListener {
/**
* Ensure that extensions for ImageIO (like the reader and writer for TIFF) are registered. This is
* required for certain Windows systems.
*
* @param event the startup event. Not needed here but required for API.
*/
@Override
public void onApplicationEvent(final ContextRefreshedEvent event) {
ImageIO.scanForPlugins();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy