Class AbstractRegistryEntry
- java.lang.Object
-
- org.apache.batik.ext.awt.image.spi.AbstractRegistryEntry
-
- All Implemented Interfaces:
ErrorConstants,RegistryEntry
- Direct Known Subclasses:
JDKRegistryEntry,MagicNumberRegistryEntry
public abstract class AbstractRegistryEntry extends java.lang.Object implements RegistryEntry, ErrorConstants
- Version:
- $Id: AbstractRegistryEntry.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Listexts(package private) java.util.ListmimeTypes(package private) java.lang.Stringname(package private) floatpriority-
Fields inherited from interface org.apache.batik.ext.awt.image.spi.ErrorConstants
ERR_STREAM_FORMAT_UNREADABLE, ERR_STREAM_UNREADABLE, ERR_URL_FORMAT_UNREADABLE, ERR_URL_UNINTERPRETABLE, ERR_URL_UNREACHABLE, RESOURCES
-
-
Constructor Summary
Constructors Constructor Description AbstractRegistryEntry(java.lang.String name, float priority, java.lang.String[] exts, java.lang.String[] mimeTypes)AbstractRegistryEntry(java.lang.String name, float priority, java.lang.String ext, java.lang.String mimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFormatName()Returns the name of the format.java.util.ListgetMimeTypes()Return a List of mime types for this file format.floatgetPriority()Returns a search priority for this entry.java.util.ListgetStandardExtensions()Return a List of the common extensions for this file format.
-
-
-
Constructor Detail
-
AbstractRegistryEntry
public AbstractRegistryEntry(java.lang.String name, float priority, java.lang.String[] exts, java.lang.String[] mimeTypes)
-
AbstractRegistryEntry
public AbstractRegistryEntry(java.lang.String name, float priority, java.lang.String ext, java.lang.String mimeType)
-
-
Method Detail
-
getFormatName
public java.lang.String getFormatName()
Description copied from interface:RegistryEntryReturns the name of the format. For example "JPEG", "PNG", ...- Specified by:
getFormatNamein interfaceRegistryEntry
-
getStandardExtensions
public java.util.List getStandardExtensions()
Description copied from interface:RegistryEntryReturn a List of the common extensions for this file format. The first entry in the list may be used as the default extension for writing files in this format (when we add support for writing that is). This may also be used to build a selection expression for finding files of this type.- Specified by:
getStandardExtensionsin interfaceRegistryEntry
-
getMimeTypes
public java.util.List getMimeTypes()
Description copied from interface:RegistryEntryReturn a List of mime types for this file format. The first entry in the list may be used as the default mime type.- Specified by:
getMimeTypesin interfaceRegistryEntry
-
getPriority
public float getPriority()
Description copied from interface:RegistryEntryReturns a search priority for this entry. For most formats this is not important, but in some cases it is important that some entries occure before or after others.- Specified by:
getPriorityin interfaceRegistryEntry
-
-