public final class ImageWriterRegistry extends Object
ImageWriter
implementations.Constructor | Description |
---|---|
ImageWriterRegistry() |
Default constructor.
|
ImageWriterRegistry(Properties preferredOrder) |
Special constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static ImageWriterRegistry |
getInstance() |
|
ImageWriter |
getWriterFor(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(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(String mime)
mime
- the MIME type of the desired output formatCopyright © 2018 Apache Software Foundation. All rights reserved.