creates a writer for a given input
(doto (-writer :buffered {:path "hello.txt"}) (.write "Hello" 0 4) (.write "World" 0 4) (.close))
(slurp "hello.txt") => "HellWorl"
creates a writer for a given input (doto (-writer :buffered {:path "hello.txt"}) (.write "Hello" 0 4) (.write "World" 0 4) (.close)) (slurp "hello.txt") => "HellWorl"
(writer opts)
(writer type opts)
creates a writer given options
(doto (writer :buffered {:path "hello.txt"}) (.write "Hello" 0 4) (.write "World" 0 4) (.close))
(slurp "hello.txt") => "HellWorl"
creates a writer given options (doto (writer :buffered {:path "hello.txt"}) (.write "Hello" 0 4) (.write "World" 0 4) (.close)) (slurp "hello.txt") => "HellWorl"
(writer-types)
returns the types of writers
(writer-types) => (contains [:buffered :char-array :file :output-stream :piped :print :string] :in-any-order)
returns the types of writers (writer-types) => (contains [:buffered :char-array :file :output-stream :piped :print :string] :in-any-order)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close