(string-input-stream s & {:keys [charset]})
Returns a slurp
-able input stream that contains s
. This can be useful
as a double when testing functions that expect an input stream. The charset
may be either a String
naming a valid charset, or an instance of
java.nio.Charset
(please see the Javadoc for details). If a charset is not
specified, the default charset for the platform is used.
Returns a `slurp`-able input stream that contains `s`. This can be useful as a double when testing functions that expect an input stream. The `charset` may be either a `String` naming a valid charset, or an instance of `java.nio.Charset` (please see the Javadoc for details). If a charset is not specified, the default charset for the platform is used.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close