goja-core/src/main/java/goja/core/kits/stream/StreamUtil.java
public static void copy(InputStream input, Writer output) throws IOException {
        copy(input, output, Const.DEFAULT_ENCODING);
    }
public static void copy(InputStream input, Writer output) throws IOException {
        copy(input, output, Const.DEFAULT_ENCODING);
    }
Copies input stream to writer using buffer.