aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes ImageIO thread-safe? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "ImageIO thread-safe?" Watch "ImageIO thread-safe?" New topic
Author

ImageIO thread-safe?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
For my JSP charting tag library (cewolf), I'm trying to figure out if the ImageIO API is thread-safe. Some suggest yes, but the ImageIO Guide specifically states that thread-safety is a non-goal. ImageIO.write in particular looks like it might cache and reuse ImageWriter objects, and thus not be thread-safe. Has anyone confirmed that one way or the other?

Even if ImageIO.write were not thread-safe, would creating ImageWriter objects some other way (allocating new ones for each request, assuming that's possible) be thread-safe?

The javadocs don't talk about thread-safety at all. Thanks in advance for any pointers.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ImageIO thread-safe?
 
Similar Threads
Resizing a gif
String objects
HttpSession methods thread-safe?
Thread Safety
Regarding Thread-safe in Servlets