KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > imageio > spi > ImageTranscoderSpi


1 /*
2  * @(#)ImageTranscoderSpi.java 1.18 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.imageio.spi;
9
10 import javax.imageio.ImageTranscoder JavaDoc;
11
12 /**
13  * The service provider interface (SPI) for <code>ImageTranscoder</code>s.
14  * For more information on service provider classes, see the class comment
15  * for the <code>IIORegistry</code> class.
16  *
17  * @see IIORegistry
18  * @see javax.imageio.ImageTranscoder
19  *
20  * @version 0.5
21  */

22 public abstract class ImageTranscoderSpi extends IIOServiceProvider JavaDoc {
23
24     /**
25      * Constructs a blank <code>ImageTranscoderSpi</code>. It is up
26      * to the subclass to initialize instance variables and/or
27      * override method implementations in order to provide working
28      * versions of all methods.
29      */

30     protected ImageTranscoderSpi() {
31     }
32
33     /**
34      * Constructs an <code>ImageTranscoderSpi</code> with a given set
35      * of values.
36      *
37      * @param vendorName the vendor name.
38      * @param version a version identifier.
39      */

40     public ImageTranscoderSpi(String JavaDoc vendorName,
41                               String JavaDoc version) {
42         super(vendorName, version);
43     }
44
45     /**
46      * Returns the fully qualified class name of an
47      * <code>ImageReaderSpi</code> class that generates
48      * <code>IIOMetadata</code> objects that may be used as input to
49      * this transcoder.
50      *
51      * @return a <code>String</code> containing the fully-qualified
52      * class name of the <code>ImageReaderSpi</code> implementation class.
53      *
54      * @see ImageReaderSpi
55      */

56     public abstract String JavaDoc getReaderServiceProviderName();
57
58     /**
59      * Returns the fully qualified class name of an
60      * <code>ImageWriterSpi</code> class that generates
61      * <code>IIOMetadata</code> objects that may be used as input to
62      * this transcoder.
63      *
64      * @return a <code>String</code> containing the fully-qualified
65      * class name of the <code>ImageWriterSpi</code> implementation class.
66      *
67      * @see ImageWriterSpi
68      */

69     public abstract String JavaDoc getWriterServiceProviderName();
70
71     /**
72      * Returns an instance of the <code>ImageTranscoder</code>
73      * implementation associated with this service provider.
74      *
75      * @return an <code>ImageTranscoder</code> instance.
76      */

77     public abstract ImageTranscoder JavaDoc createTranscoderInstance();
78 }
79
Popular Tags