StringBuilder
A modifiable sequence of characters
for use in creating strings. This class is intended as a direct replacement of StringBuffer
for non-concurrent use; unlike StringBuffer
this class is not synchronized.
For particularly complex string-building needs, consider Formatter
.
The majority of the modification methods on this class return this
so that method calls can be chained together. For example: new StringBuilder("a").append("b").append("c").toString()
.
BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(paramInputStream));
StringBuilder localStringBuilder = new StringBuilder();
try
{
while (true)
{
String str;
str = localBufferedReader.readLine();
if(str != null);
{
localStringBuilder.append(str);
}
return
localStringBuilder.toString();
}
}
catch (IOException localIOException1)
{
localIOException1.printStackTrace();
}