Liking cljdoc? Tell your friends :D

hara.io.file.writer


-writercljmultimethod

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"

raw docstring

writerclj

(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"

raw docstring

writer-typesclj

(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)
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close