|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.writer.ImageWriterRegistry
public class ImageWriterRegistry
Registry for ImageWriter implementations. They are primarily registered through the "Service Provider" mechanism.
Service
Constructor Summary | |
---|---|
ImageWriterRegistry()
Default constructor. |
|
ImageWriterRegistry(java.util.Properties preferredOrder)
Special constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageWriterRegistry()
public ImageWriterRegistry(java.util.Properties preferredOrder)
Method Detail |
---|
public static ImageWriterRegistry getInstance()
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 format
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |