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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |