src/org/nutz/lang/Streams.java
public static long writeAndClose(OutputStream ops, InputStream ins) {
        try {
            return write(ops, ins);
        }
        catch (IOException e) {
            throw Lang.wrapThrow(e);
        }
        finally {
            safeClose(ops);
            safeClose(ins);
        }
    }
public static long writeAndClose(OutputStream ops, InputStream ins) {
        try {
            return write(ops, ins);
        }
        catch (IOException e) {
            throw Lang.wrapThrow(e);
        }
        finally {
            safeClose(ops);
            safeClose(ins);
        }
    }
public static long writeAndClose ( OutputStream ops , InputStream ins ) { try { return write ( ops , ins ) ; } catch ( IOException e ) { throw Lang . wrapThrow ( e ) ; } finally { safeClose ( ops ) ; safeClose ( ins ) ; } }
将输入流写入一个输出流。块大小为 8192
<p>
<b style=color:red>注意</b>，它会关闭输入/出流

@param ops
输出流
@param ins
输入流
@return 写入的字节数
将输入流写入一个输出流。块大小为 8192 <p > <b style = color : red > 注意< / b > ，它会关闭输入 / 出流