public class ImageWriterRegistry
extends java.lang.Object
Service
Constructor and Description |
---|
ImageWriterRegistry()
Default constructor.
|
ImageWriterRegistry(java.util.Properties preferredOrder)
Special constructor.
|
Modifier and Type | Method and Description |
---|---|
static ImageWriterRegistry |
getInstance() |
ImageWriter |
getWriterFor(java.lang.String mime)
Returns an ImageWriter that can be used to encode an image to the requested MIME type.
|
void |
register(ImageWriter writer)
Registers a new ImageWriter implementation in the registry.
|
void |
register(ImageWriter writer,
int priority)
Registers a new ImageWriter implementation with the associated priority in the registry.
|
public ImageWriterRegistry()
public ImageWriterRegistry(java.util.Properties preferredOrder)
preferredOrder
- the map of order properties used to order the plug-inspublic static ImageWriterRegistry getInstance()
public void register(ImageWriter writer, int priority)
writer
- the ImageWriter instance to register.priority
- the priority of the writer in the registry.register(ImageWriter)
public void register(ImageWriter writer)
writer
- the ImageWriter instance to register.public ImageWriter getWriterFor(java.lang.String mime)
mime
- the MIME type of the desired output formatCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.