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

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -