Search in sources :

Example 1 with PNGImageWriterSpi

use of com.sun.imageio.plugins.png.PNGImageWriterSpi in project jdk8u_jdk by JetBrains.

the class IIORegistry method registerStandardSpis.

private void registerStandardSpis() {
    // Hardwire standard SPIs
    registerServiceProvider(new GIFImageReaderSpi());
    registerServiceProvider(new GIFImageWriterSpi());
    registerServiceProvider(new BMPImageReaderSpi());
    registerServiceProvider(new BMPImageWriterSpi());
    registerServiceProvider(new WBMPImageReaderSpi());
    registerServiceProvider(new WBMPImageWriterSpi());
    registerServiceProvider(new PNGImageReaderSpi());
    registerServiceProvider(new PNGImageWriterSpi());
    registerServiceProvider(new JPEGImageReaderSpi());
    registerServiceProvider(new JPEGImageWriterSpi());
    registerServiceProvider(new FileImageInputStreamSpi());
    registerServiceProvider(new FileImageOutputStreamSpi());
    registerServiceProvider(new InputStreamImageInputStreamSpi());
    registerServiceProvider(new OutputStreamImageOutputStreamSpi());
    registerServiceProvider(new RAFImageInputStreamSpi());
    registerServiceProvider(new RAFImageOutputStreamSpi());
    registerInstalledProviders();
}
Also used : GIFImageReaderSpi(com.sun.imageio.plugins.gif.GIFImageReaderSpi) PNGImageWriterSpi(com.sun.imageio.plugins.png.PNGImageWriterSpi) RAFImageOutputStreamSpi(com.sun.imageio.spi.RAFImageOutputStreamSpi) JPEGImageWriterSpi(com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi) PNGImageReaderSpi(com.sun.imageio.plugins.png.PNGImageReaderSpi) BMPImageReaderSpi(com.sun.imageio.plugins.bmp.BMPImageReaderSpi) WBMPImageReaderSpi(com.sun.imageio.plugins.wbmp.WBMPImageReaderSpi) OutputStreamImageOutputStreamSpi(com.sun.imageio.spi.OutputStreamImageOutputStreamSpi) FileImageInputStreamSpi(com.sun.imageio.spi.FileImageInputStreamSpi) WBMPImageReaderSpi(com.sun.imageio.plugins.wbmp.WBMPImageReaderSpi) InputStreamImageInputStreamSpi(com.sun.imageio.spi.InputStreamImageInputStreamSpi) FileImageOutputStreamSpi(com.sun.imageio.spi.FileImageOutputStreamSpi) RAFImageInputStreamSpi(com.sun.imageio.spi.RAFImageInputStreamSpi) GIFImageWriterSpi(com.sun.imageio.plugins.gif.GIFImageWriterSpi) WBMPImageWriterSpi(com.sun.imageio.plugins.wbmp.WBMPImageWriterSpi) BMPImageWriterSpi(com.sun.imageio.plugins.bmp.BMPImageWriterSpi) WBMPImageWriterSpi(com.sun.imageio.plugins.wbmp.WBMPImageWriterSpi) JPEGImageReaderSpi(com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi)

Example 2 with PNGImageWriterSpi

use of com.sun.imageio.plugins.png.PNGImageWriterSpi in project jdk8u_jdk by JetBrains.

the class PNGSpiStreamMetadata method main.

public static void main(String[] args) {
    ImageReaderSpi rspi = new PNGImageReaderSpi();
    if (rspi.getNativeStreamMetadataFormatName() != null) {
        fatal();
    }
    if (rspi.isStandardStreamMetadataFormatSupported() != false) {
        fatal();
    }
    if (rspi.getExtraStreamMetadataFormatNames() != null) {
        fatal();
    }
    ImageWriterSpi wspi = new PNGImageWriterSpi();
    if (wspi.getNativeStreamMetadataFormatName() != null) {
        fatal();
    }
    if (wspi.isStandardStreamMetadataFormatSupported() != false) {
        fatal();
    }
    if (wspi.getExtraStreamMetadataFormatNames() != null) {
        fatal();
    }
}
Also used : ImageReaderSpi(javax.imageio.spi.ImageReaderSpi) PNGImageReaderSpi(com.sun.imageio.plugins.png.PNGImageReaderSpi) PNGImageWriterSpi(com.sun.imageio.plugins.png.PNGImageWriterSpi) PNGImageReaderSpi(com.sun.imageio.plugins.png.PNGImageReaderSpi) PNGImageWriterSpi(com.sun.imageio.plugins.png.PNGImageWriterSpi) ImageWriterSpi(javax.imageio.spi.ImageWriterSpi)

Aggregations

PNGImageReaderSpi (com.sun.imageio.plugins.png.PNGImageReaderSpi)2 PNGImageWriterSpi (com.sun.imageio.plugins.png.PNGImageWriterSpi)2 BMPImageReaderSpi (com.sun.imageio.plugins.bmp.BMPImageReaderSpi)1 BMPImageWriterSpi (com.sun.imageio.plugins.bmp.BMPImageWriterSpi)1 GIFImageReaderSpi (com.sun.imageio.plugins.gif.GIFImageReaderSpi)1 GIFImageWriterSpi (com.sun.imageio.plugins.gif.GIFImageWriterSpi)1 JPEGImageReaderSpi (com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi)1 JPEGImageWriterSpi (com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi)1 WBMPImageReaderSpi (com.sun.imageio.plugins.wbmp.WBMPImageReaderSpi)1 WBMPImageWriterSpi (com.sun.imageio.plugins.wbmp.WBMPImageWriterSpi)1 FileImageInputStreamSpi (com.sun.imageio.spi.FileImageInputStreamSpi)1 FileImageOutputStreamSpi (com.sun.imageio.spi.FileImageOutputStreamSpi)1 InputStreamImageInputStreamSpi (com.sun.imageio.spi.InputStreamImageInputStreamSpi)1 OutputStreamImageOutputStreamSpi (com.sun.imageio.spi.OutputStreamImageOutputStreamSpi)1 RAFImageInputStreamSpi (com.sun.imageio.spi.RAFImageInputStreamSpi)1 RAFImageOutputStreamSpi (com.sun.imageio.spi.RAFImageOutputStreamSpi)1 ImageReaderSpi (javax.imageio.spi.ImageReaderSpi)1 ImageWriterSpi (javax.imageio.spi.ImageWriterSpi)1