src/main/java/org/musicbrainz/webservice/impl/HttpClientWebServiceWs2.java
/**
     * method to convert an InputStream to a string using the BufferedReader.readLine() method this methods reads the InputStream line by line until the null line is encountered it
     * appends each line to a StringBuilder object for optimal performance
     * 
     * @param is
     * @return
     * @throws IOException
     */
method to convert an InputStream to a string using the BufferedReader.readLine() method this methods reads the InputStream line by line until the null line is encountered it
appends each line to a StringBuilder object for optimal performance

@param is
@return
@throws IOException
method to convert an InputStream to a string using the BufferedReader . readLine () method this methods reads the InputStream line by line until the null line is encountered it appends each line to a StringBuilder object for optimal performance @param is @return @throws IOException
public static String convertInputStreamToString(InputStream inputStream) throws IOException
    {
        if (inputStream != null)
        {
            StringBuilder stringBuilder = new StringBuilder();
            String line;
            try
            {
                BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
                while ((line = reader.readLine()) != null)
                {
                    stringBuilder.append(line).append("\n");
                }
            }
            finally
            {
                inputStream.close();
            }
            return stringBuilder.toString();
        }
        else
        {
            return null;
        }
    }
public static String convertInputStreamToString ( InputStream inputStream ) throws IOException { if ( inputStream != null ) { StringBuilder stringBuilder = new StringBuilder ( ) ; String line ; try { BufferedReader reader = new BufferedReader ( new InputStreamReader ( inputStream , "UTF-8" ) ) ; while ( ( line = reader . readLine ( ) ) != null ) { stringBuilder . append ( line ) . append ( "\n" ) ; } } finally { inputStream . close ( ) ; } return stringBuilder . toString ( ) ; } else { return null ; } }
method to convert an InputStream to a string using the BufferedReader.readLine() method this methods reads the InputStream line by line until the null line is encountered it
 appends each line to a StringBuilder object for optimal performance
method to convert an InputStream to a string using the BufferedReader . readLine () method this methods reads the InputStream line by line until the null line is encountered it appends each line to a StringBuilder object for optimal performance