Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/javax/imageio/spi/ImageTranscoderSpi.java
38830 views
/*1* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.imageio.spi;2627import javax.imageio.ImageTranscoder;2829/**30* The service provider interface (SPI) for <code>ImageTranscoder</code>s.31* For more information on service provider classes, see the class comment32* for the <code>IIORegistry</code> class.33*34* @see IIORegistry35* @see javax.imageio.ImageTranscoder36*37*/38public abstract class ImageTranscoderSpi extends IIOServiceProvider {3940/**41* Constructs a blank <code>ImageTranscoderSpi</code>. It is up42* to the subclass to initialize instance variables and/or43* override method implementations in order to provide working44* versions of all methods.45*/46protected ImageTranscoderSpi() {47}4849/**50* Constructs an <code>ImageTranscoderSpi</code> with a given set51* of values.52*53* @param vendorName the vendor name.54* @param version a version identifier.55*/56public ImageTranscoderSpi(String vendorName,57String version) {58super(vendorName, version);59}6061/**62* Returns the fully qualified class name of an63* <code>ImageReaderSpi</code> class that generates64* <code>IIOMetadata</code> objects that may be used as input to65* this transcoder.66*67* @return a <code>String</code> containing the fully-qualified68* class name of the <code>ImageReaderSpi</code> implementation class.69*70* @see ImageReaderSpi71*/72public abstract String getReaderServiceProviderName();7374/**75* Returns the fully qualified class name of an76* <code>ImageWriterSpi</code> class that generates77* <code>IIOMetadata</code> objects that may be used as input to78* this transcoder.79*80* @return a <code>String</code> containing the fully-qualified81* class name of the <code>ImageWriterSpi</code> implementation class.82*83* @see ImageWriterSpi84*/85public abstract String getWriterServiceProviderName();8687/**88* Returns an instance of the <code>ImageTranscoder</code>89* implementation associated with this service provider.90*91* @return an <code>ImageTranscoder</code> instance.92*/93public abstract ImageTranscoder createTranscoderInstance();94}959697