return buffer.toString();
out.flush(); return out.toString();
    public static String readIntoString(InputStream in) throws IOException {        InputStreamReader reader = new InputStreamReader(in);        StringBuffer buffer = new StringBuffer();        char[] block = new char[1024];        int read;        while (((read = reader.read(block)) >= 0)) {            buffer.append(block);        }        return buffer.toString();    }