The Android Open Source Project | 7c1b96a | 2008-10-21 07:00:00 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | * contributor license agreements. See the NOTICE file distributed with |
| 4 | * this work for additional information regarding copyright ownership. |
| 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | * (the "License"); you may not use this file except in compliance with |
| 7 | * the License. You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | /** |
| 18 | * @author Rustem V. Rafikov |
| 19 | * @version $Revision: 1.3 $ |
| 20 | */ |
| 21 | package javax.imageio.spi; |
| 22 | |
| 23 | import javax.imageio.ImageTranscoder; |
| 24 | |
| 25 | /** |
| 26 | * The ImageTranscoderSpi class is a service provider interface (SPI) |
| 27 | * for ImageTranscoders. |
| 28 | */ |
| 29 | public abstract class ImageTranscoderSpi extends IIOServiceProvider |
| 30 | implements RegisterableService { |
| 31 | |
| 32 | /** |
| 33 | * Instantiates a new ImageTranscoderSpi. |
| 34 | */ |
| 35 | protected ImageTranscoderSpi() { |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Instantiates a new ImageTranscoderSpi with the specified |
| 40 | * vendor name and version. |
| 41 | * |
| 42 | * @param vendorName the vendor name. |
| 43 | * @param version the version. |
| 44 | */ |
| 45 | public ImageTranscoderSpi(String vendorName, String version) { |
| 46 | super(vendorName, version); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Gets the class name of an ImageReaderSpi that |
| 51 | * produces IIOMetadata objects that can be used as |
| 52 | * input to this transcoder. |
| 53 | * |
| 54 | * @return the class name of an ImageReaderSpi. |
| 55 | */ |
| 56 | public abstract String getReaderServiceProviderName(); |
| 57 | |
| 58 | /** |
| 59 | * Gets the class name of an ImageWriterSpi that |
| 60 | * produces IIOMetadata objects that can be used as |
| 61 | * input to this transcoder. |
| 62 | * |
| 63 | * @return the class name of an ImageWriterSpi. |
| 64 | */ |
| 65 | public abstract String getWriterServiceProviderName(); |
| 66 | |
| 67 | /** |
| 68 | * Creates an instance of the ImageTranscoder associated |
| 69 | * with this service provider. |
| 70 | * |
| 71 | * @return the ImageTranscoder instance. |
| 72 | */ |
| 73 | public abstract ImageTranscoder createTranscoderInstance(); |
| 74 | } |