src/org/kocakosm/pitaya/io/CharStreams.java
public static String read(Reader in) throws IOException
	{
		Writer out = new StringWriter();
		copy(in, out);
		return out.toString();
	}
public static String read(Reader in) throws IOException
	{
		Writer out = new StringWriter();
		copy(in, out);
		return out.toString();
	}
public static String read ( Reader in ) throws IOException { Writer out = new StringWriter ( ) ; copy ( in , out ) ; return out . toString ( ) ; }
Reads the whole content of the given {@code Reader} into a
{@code String}.

@param in the stream to read.

@return the stream's content as a {@code String}.

@throws NullPointerException if {@code in} is {@code null}.
@throws IOException if the stream cannot be read.
Reads the whole content of the given { @code Reader } into a { @code String } .