String sCurrentLine = null;
String sTotalString = null;
try
{
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
StringBuffer stemp = new StringBuffer();
while ((sCurrentLine = bufferedReader.readLine()) != null)
{
stemp.append(sCurrentLine);
}
sTotalString = stemp.toString();
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
if (null != inputStream)
{
try
{
inputStream.close();
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
return sTotalString;
String sTotalString = null;
try
{
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
StringBuffer stemp = new StringBuffer();
while ((sCurrentLine = bufferedReader.readLine()) != null)
{
stemp.append(sCurrentLine);
}
sTotalString = stemp.toString();
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
if (null != inputStream)
{
try
{
inputStream.close();
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
return sTotalString;