Mark S. Kolich - Remember to Close Your Streams When Using Java's Runtime.getRuntime().exec() Process...

Please Visit: http://ift.tt/1ajReyV



Mark S. Kolich - Remember to Close Your Streams When Using Java's Runtime.getRuntime().exec()

Process p = null;

try {

p = Runtime.getRuntime().exec(...);

// Do something with p.

} finally {

if(p != null) {

closeQuietly(p.getOutputStream());

closeQuietly(p.getInputStream());

closeQuietly(p.getErrorStream());

}

}

http://ift.tt/WRWOJC

http://ift.tt/WRWOJF



Mark S. Kolich - Remember to Close Your Streams When Using Java's Runtime.getRuntime().exec()







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mNYMQi

via LifeLong Community

No comments:

Post a Comment