clojuressh.output-stream

close

(close stream)

Close the stream

connect

(connect stream sink)

Connect a PipedInputStream to this to act as a sink

flush

(flush stream)

Flush the stream

new

(new)(new sink)

Create a new PipedOutputStream. Optional first argument can be a PipedInputStream to connect as the sink.

write

(write stream bytes)(write stream byte-array offset length)

(write stream bytes) Write a byte-array bytes to the stream.

(write stream byte-array offset length) Write length bytes from byte-array beginning at offset to stream.