Please Visit: http://ift.tt/1ajReyV
from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mNYMQi
via LifeLong Community
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
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
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