java - Does `javax.imageio.ImageIO` require file locking? -


my app saving images folder. simultaneously piece of software watches on folder , prints pasted images.

problem i've encountered printing app can send on printer half rendered image or doesn't react saved images @ all.

i'm using javax.imageio.imageio.write(renderedimage im, string formatname, file output) save bufferedimage png format.

if locking required please provide code example explicit locks. if not explain why.

i've tested on windows, jre 1.8

basically, should write image temporary file , rename final file name. way file written before other app becomes aware of it.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -