How do I convert an input stream to text?

This example shows you how to convert an input stream to text.
package net.javaiq.examples.files;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * This class demonstrates on how to convert an input to text. 
 * @author JavaIQ.net
 * Creation Date Dec 10, 2010
 */
public class InputStreamToTextConverter {

    public static String convertInputStreamToText(InputStream stream) {
        StringBuilder sb = new StringBuilder();
        String line = null;

        if (stream != null) {
            try {
                BufferedReader br = new BufferedReader(new InputStreamReader(stream));
                while ((line = br.readLine()) != null) {
                    //apending the content
                    sb.append(line);
                    //appending new line
                    sb.append("\n");
                }
                br.close();
            } catch (IOException ioEx) {
                ioEx.printStackTrace();
            }
        }
        return sb.toString();
    }

    /**
     * Method to test other methods in the class with sample inputs
     * @param args
     */
    public static void main(String[] args) {
        FileInputStream inputStream;
        try {
            inputStream = new FileInputStream("C:\\Sample.txt");
            String streamText = convertInputStreamToText(inputStream);
            System.out.println(streamText);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }

}