src/org/kocakosm/pitaya/io/Resource.java
public String read(Charset charset) throws IOException
	{
		InputStream in = url.openStream();
		try {
			return CharStreams.read(in, charset);
		} finally {
			IO.close(in);
		}
	}
public String read(Charset charset) throws IOException
	{
		InputStream in = url.openStream();
		try {
			return CharStreams.read(in, charset);
		} finally {
			IO.close(in);
		}
	}
Reads and returns this resource's content as a {@code String}.

@param charset the charset to use.

@return this resource's content.

@throws NullPointerException if {@code charset} is {@code null}.
@throws IOException if an I/O error occurs during the process.