Paste number 96708: Idiomatic or not

Index of paste annotations: 1

Paste number 96708: Idiomatic or not
Pasted by: zab
When:2 years, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+22MC
Channel:None
Paste contents:
Raw Source | XML | Display As
(def output-stream (ByteArrayOutputStream.))

(defn new-output-stream
  "Need to create a new output stream because calling .hasNext() on the
  iterator discards all data."
  [input-stream]
  (Streams/copy input-stream output-stream true)
  output-stream)

Annotations for this paste:

Annotation number 1: untitled
Pasted by: rfg
When:2 years, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+22MC/1
Paste contents:
Raw Source | Display As
(defn new-output-stream
  "Need to create a new output stream because calling .hasNext() on the
  iterator discards all data."
  [input-stream]
  (Streams/copy input-stream (ByteArrayOutputStream.) true)
  output-stream)

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.