Path: blob/master/src/java.desktop/share/classes/javax/imageio/spi/ImageTranscoderSpi.java
41155 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}s.31* For more information on service provider classes, see the class comment32* for the {@code IIORegistry} class.33*34* @see IIORegistry35* @see javax.imageio.ImageTranscoder36*37*/38public abstract class ImageTranscoderSpi extends IIOServiceProvider {3940/**41* Constructs a blank {@code ImageTranscoderSpi}. 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} 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} class that generates64* {@code IIOMetadata} objects that may be used as input to65* this transcoder.66*67* @return a {@code String} containing the fully-qualified68* class name of the {@code ImageReaderSpi} implementation class.69*70* @see ImageReaderSpi71*/72public abstract String getReaderServiceProviderName();7374/**75* Returns the fully qualified class name of an76* {@code ImageWriterSpi} class that generates77* {@code IIOMetadata} objects that may be used as input to78* this transcoder.79*80* @return a {@code String} containing the fully-qualified81* class name of the {@code ImageWriterSpi} implementation class.82*83* @see ImageWriterSpi84*/85public abstract String getWriterServiceProviderName();8687/**88* Returns an instance of the {@code ImageTranscoder}89* implementation associated with this service provider.90*91* @return an {@code ImageTranscoder} instance.92*/93public abstract ImageTranscoder createTranscoderInstance();94}959697