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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -