| 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: |
(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: |
(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)