Revert "Add PipedInputStream and PipedOutputStream"
This reverts commit 51133263f2.
This commit is contained in:
parent
8da8b3ffb8
commit
7bf2230f1b
2 changed files with 0 additions and 14 deletions
|
|
@ -93,10 +93,8 @@
|
|||
java.io.FilenameFilter
|
||||
java.io.FileNotFoundException
|
||||
java.io.InputStream
|
||||
java.io.PipedInputStream
|
||||
java.io.IOException
|
||||
java.io.OutputStream
|
||||
java.io.PipedOutputStream
|
||||
java.io.FileReader
|
||||
java.io.InputStreamReader
|
||||
java.io.PushbackInputStream
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
(ns babashka.java-io-piped-stream-test
|
||||
(:require [clojure.test :as test :refer [deftest is]])
|
||||
(:import [java.io PipedInputStream PipedOutputStream]))
|
||||
|
||||
(deftest piped-stream-test
|
||||
(let [pis (PipedInputStream.)
|
||||
pos (PipedOutputStream.)
|
||||
char-seq [66 97 98 97 115 104 107 97]
|
||||
_ (.connect pis pos)
|
||||
_ (doseq [c char-seq]
|
||||
(.write pos c))]
|
||||
(is (= "Babashka" (apply str (for [_ char-seq] (char (.read pis))))))))
|
||||
Loading…
Reference in a new issue