return new IOInputStream(in);
}
private static boolean[] dumpToStream(Ruby runtime, IRubyObject object, OutputStream rawOutput,
int depthLimit) throws IOException {
MarshalStream output = new MarshalStream(runtime, rawOutput, depthLimit);
output.dumpObject(object);
return new boolean[] {output.isTainted(), output.isUntrusted()};
}