CompressFormat is an enum and valueOf() is the standard enum
implementation. It would be counterintuitive to change its behavior as
it would be different from other enums.

On Wed, Apr 9, 2008 at 4:12 PM, Diego Pino <[EMAIL PROTECTED]> wrote:
>
>  I would like to suggest an enhacement for valueOf method in
>  CompressFormat.
>
>  It is kind of usual to select a CompressFormat accordding to a file
>  extension. However CompressFormat.valueOf(String) just expects the
>  already defined constants in CompressFormat: "jpeg", "png", "zlib".
>
>  Right now, for instance, CompressFormat.valueOf("jpg") throws an
>  IllegalArgumentException.  I would have expect it to return
>  CompressFormat.JPEG.
>
>
>  >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to