From: <pen...@pe...> - 2008-12-27 15:29:59
|
Author: tmorgner Date: 2008-12-27 09:29:56 -0600 (Sat, 27 Dec 2008) New Revision: 7354 Modified: libraries/libbase/trunk/source/org/pentaho/reporting/libraries/base/encoder/ImageEncoderRegistry.java Log: PRE-446: ImageEncoding support as requested and implemented by Pedro. Modified: libraries/libbase/trunk/source/org/pentaho/reporting/libraries/base/encoder/ImageEncoderRegistry.java =================================================================== --- libraries/libbase/trunk/source/org/pentaho/reporting/libraries/base/encoder/ImageEncoderRegistry.java 2008-12-27 15:26:27 UTC (rev 7353) +++ libraries/libbase/trunk/source/org/pentaho/reporting/libraries/base/encoder/ImageEncoderRegistry.java 2008-12-27 15:29:56 UTC (rev 7354) @@ -60,6 +60,11 @@ return encoders.containsKey(mimeType); } + public String[] getRegisteredEncoders() + { + return (String[]) encoders.keySet().toArray(new String[encoders.size()]); + } + public ImageEncoder createEncoder(final String mimeType) throws UnsupportedEncoderException { final Object o = encoders.get(mimeType); |