I have been trying to execute commands using java. And I trying to figure a fastest way to convert process inputstream to string. On reading a lot, I found that ByteArrayOutputstream is faster. Is i t faster comparing to StringBuffer conversion?
I am trying to execute a command using Java process. I want to convert the process InputStream to string.I have been trying to use both ByteArrayOutputStream and (BufferedReader to StringBuffer) to convert the process inputstream to string. But I couldn't figure ways to differentiate. Can someone share your experience?