while ((buffer = stream.read()) != -1) { sb.append((char) buffer);
while((st=br.readLine())!=null){ sb.append(st+NEWLINE);
	private static String toString(InputStream stream)		throws CmdLineException {		int buffer;		StringBuffer sb = new StringBuffer();		try {			while ((buffer = stream.read()) != -1) {				sb.append((char) buffer);			}		} catch (IOException e) {			throw CmdLineException.wrapException(e);		}		return sb.toString();	}