0N/A/*
2362N/A * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage javax.imageio.spi;
0N/A
0N/Aimport javax.imageio.ImageTranscoder;
0N/A
0N/A/**
0N/A * The service provider interface (SPI) for <code>ImageTranscoder</code>s.
0N/A * For more information on service provider classes, see the class comment
0N/A * for the <code>IIORegistry</code> class.
0N/A *
0N/A * @see IIORegistry
0N/A * @see javax.imageio.ImageTranscoder
0N/A *
0N/A */
0N/Apublic abstract class ImageTranscoderSpi extends IIOServiceProvider {
0N/A
0N/A /**
0N/A * Constructs a blank <code>ImageTranscoderSpi</code>. It is up
0N/A * to the subclass to initialize instance variables and/or
0N/A * override method implementations in order to provide working
0N/A * versions of all methods.
0N/A */
0N/A protected ImageTranscoderSpi() {
0N/A }
0N/A
0N/A /**
0N/A * Constructs an <code>ImageTranscoderSpi</code> with a given set
0N/A * of values.
0N/A *
0N/A * @param vendorName the vendor name.
0N/A * @param version a version identifier.
0N/A */
0N/A public ImageTranscoderSpi(String vendorName,
0N/A String version) {
0N/A super(vendorName, version);
0N/A }
0N/A
0N/A /**
0N/A * Returns the fully qualified class name of an
0N/A * <code>ImageReaderSpi</code> class that generates
0N/A * <code>IIOMetadata</code> objects that may be used as input to
0N/A * this transcoder.
0N/A *
0N/A * @return a <code>String</code> containing the fully-qualified
0N/A * class name of the <code>ImageReaderSpi</code> implementation class.
0N/A *
0N/A * @see ImageReaderSpi
0N/A */
0N/A public abstract String getReaderServiceProviderName();
0N/A
0N/A /**
0N/A * Returns the fully qualified class name of an
0N/A * <code>ImageWriterSpi</code> class that generates
0N/A * <code>IIOMetadata</code> objects that may be used as input to
0N/A * this transcoder.
0N/A *
0N/A * @return a <code>String</code> containing the fully-qualified
0N/A * class name of the <code>ImageWriterSpi</code> implementation class.
0N/A *
0N/A * @see ImageWriterSpi
0N/A */
0N/A public abstract String getWriterServiceProviderName();
0N/A
0N/A /**
0N/A * Returns an instance of the <code>ImageTranscoder</code>
0N/A * implementation associated with this service provider.
0N/A *
0N/A * @return an <code>ImageTranscoder</code> instance.
0N/A */
0N/A public abstract ImageTranscoder createTranscoderInstance();
0N/A}