KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > ext > awt > image > spi > RegistryEntry


1 /*
2
3    Copyright 2001 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    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 package org.apache.batik.ext.awt.image.spi;
19
20 import java.util.List JavaDoc;
21
22 /**
23  * The base interface for all image tag registry entries. To be useful you
24  * probably need to implement on of the flavors of registry entries (such as
25  * StreamRegistryEntry or URLRegistryEntry).
26  */

27 public interface RegistryEntry {
28
29     /**
30      * Return a List of the common extensions for this file format. The first
31      * entry in the list may be used as the default extension for writing files
32      * in this format (when we add support for writing that is). This may also
33      * be used to build a selection expression for finding files of this type.
34      */

35     List JavaDoc getStandardExtensions();
36
37     /**
38      * Return a List of mime types for this file format. The first entry in the
39      * list may be used as the default mime type. */

40     List JavaDoc getMimeTypes();
41
42     /**
43      * Returns the name of the format. For example "JPEG", "PNG", ...
44      */

45     String JavaDoc getFormatName();
46
47     /**
48      * Returns a search priority for this entry. For most formats this is not
49      * important, but in some cases it is important that some entries occure
50      * before or after others.
51      */

52     float getPriority();
53 }
54
Popular Tags