(string-input-stream s)
(string-input-stream s encoding)
Returns a ByteArrayInputStream for the given String.
Source
(defn string-input-stream
"Returns a ByteArrayInputStream for the given String."
{:added "1.1"}
([^String s]
(ByteArrayInputStream. (.getBytes s)))
([^String s ^String encoding]
(ByteArrayInputStream. (.getBytes s encoding))))