Package javax.imageio.spi

Examples of javax.imageio.spi.ImageWriterSpi


        if (!isAggressiveOutputStreamSupported() && aggressiveOutputStreamOptimization) {
            throw new UnsupportedOperationException(OPERATION_NOT_SUPPORTED);
        }

        // Selection of the first priority writerSpi
        ImageWriterSpi newSpi = getWriterSpi();

        if (newSpi != null) {
            // Creation of the associated Writer
            ImageWriter writer = null;
            ImageOutputStream stream = null;
            try {
                writer = newSpi.createWriterInstance();
                // Check if the input object is an OutputStream
                if (destination instanceof OutputStream) {
                    // Use of the ImageOutputStreamAdapter
                    if (isAggressiveOutputStreamSupported()) {
                        stream = new ImageOutputStreamAdapter((OutputStream) destination);
View Full Code Here


        // Checks for each Spi class if it is present and then it is added to the list.
        for (String spi : writerSpi) {
            try {

                Class<?> clazz = Class.forName(spi);
                ImageWriterSpi writer = (ImageWriterSpi) theRegistry
                        .getServiceProviderByClass(clazz);
                if (writer != null) {
                    this.spi = writer;
                    break;
                }
View Full Code Here

TOP

Related Classes of javax.imageio.spi.ImageWriterSpi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.