Added as-input-stream and as-output-stream, fixed issue #2.