java - What is the practical use of Bytearrayoutputstream -


i have understood bytearrayoutputstream api. question bit different. interested in understanding real life scenario use ? reasons, seem feel fileio useful, trying understand use-case of bytearrayoutputstream.

if you're generating transient data, it's nicer use byte array store data instead of worrying of cases in might have clean file later. file.deleteonexit() leaks memory , fails in event of system crash. temporary data, it's nice benefit automatic garbage collection.

in context of clustered web applications session replication allows share data in user session. if user's session moved node, data still available web application. isn't case files on disk.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -