public class BitmapEncoderRegistry extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
BitmapEncoderRegistry()
Utility class: Constructor prevents instantiating when subclassed.
|
| Modifier and Type | Method and Description |
|---|---|
static BitmapEncoder |
getInstance(String mime)
Returns a BitmapEncoder instance for a particular MIME type.
|
static Set |
getSupportedMIMETypes()
Returns a Set of Strings with all the supported MIME types from all
registered BitmapEncoders.
|
static void |
register(String classname,
int priority)
Register a new BitmapEncoder implementation.
|
static boolean |
supports(BitmapEncoder encoder,
String mime)
Indicates whether a specific BitmapEncoder implementation supports a
particular MIME type.
|
static boolean |
supports(String mime)
Indicates whether a particular MIME type is supported by one of the
registered BitmapEncoder implementations.
|
protected BitmapEncoderRegistry()
public static void register(String classname, int priority)
classname - fully qualified classname of the BitmapEncoder
implementationpriority - lets you define a priority for an encoder. If you want
to give an encoder a high priority, assign a value of 100 or higher.public static boolean supports(BitmapEncoder encoder, String mime)
encoder - BitmapEncoder to inspectmime - MIME type to checkpublic static boolean supports(String mime)
mime - MIME type to checkpublic static BitmapEncoder getInstance(String mime)
mime - desired MIME typepublic static Set getSupportedMIMETypes()
Copyright © 2003–2023. All rights reserved.