|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.krysalis.barcode4j.output.bitmap.BitmapEncoderRegistry
public class BitmapEncoderRegistry
Registry class for BitmapEncoders.
| Constructor Summary | |
|---|---|
protected |
BitmapEncoderRegistry()
Utility class: Constructor prevents instantiating when subclassed. |
| Method Summary | |
|---|---|
static BitmapEncoder |
getInstance(java.lang.String mime)
Returns a BitmapEncoder instance for a particular MIME type. |
static java.util.Set |
getSupportedMIMETypes()
Returns a Set of Strings with all the supported MIME types from all registered BitmapEncoders. |
static void |
register(java.lang.String classname,
int priority)
Register a new BitmapEncoder implementation. |
static boolean |
supports(BitmapEncoder encoder,
java.lang.String mime)
Indicates whether a specific BitmapEncoder implementation supports a particular MIME type. |
static boolean |
supports(java.lang.String mime)
Indicates whether a particular MIME type is supported by one of the registered BitmapEncoder implementations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BitmapEncoderRegistry()
| Method Detail |
|---|
public static void register(java.lang.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,
java.lang.String mime)
encoder - BitmapEncoder to inspectmime - MIME type to check
public static boolean supports(java.lang.String mime)
mime - MIME type to check
public static BitmapEncoder getInstance(java.lang.String mime)
mime - desired MIME type
public static java.util.Set getSupportedMIMETypes()
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||