src/org/nutz/lang/Streams.java
public static String readAndClose(Reader reader) {
        try {
            return read(reader).toString();
        }
        catch (IOException e) {
            throw Lang.wrapThrow(e);
        }
        finally {
            safeClose(reader);
        }
    }
public static String readAndClose(Reader reader) {
        try {
            return read(reader).toString();
        }
        catch (IOException e) {
            throw Lang.wrapThrow(e);
        }
        finally {
            safeClose(reader);
        }
    }
从一个文本流中读取全部内容并返回
<p>
<b style=color:red>注意</b>，它会关闭输入流

@param reader
文本输入流
@return 文本内容
@throws IOException