Liking cljdoc? Tell your friends :D

ring.util.io

Utility functions for handling I/O.

Utility functions for handling I/O.
raw docstring

close!clj

(close! stream)

Ensure a stream is closed, swallowing any exceptions.

Ensure a stream is closed, swallowing any exceptions.
sourceraw docstring

last-modified-dateclj

(last-modified-date file)

Returns the last modified date for a file, rounded down to the nearest second.

Returns the last modified date for a file, rounded down to the nearest
second.
sourceraw docstring

piped-input-streamclj

(piped-input-stream func)

Create an input stream from a function that takes an output stream as its argument. The function will be executed in a separate thread. The stream will be automatically closed after the function finishes.

For example:

(piped-input-stream (fn [ostream] (spit ostream "Hello")))

Create an input stream from a function that takes an output stream as its
argument. The function will be executed in a separate thread. The stream
will be automatically closed after the function finishes.

For example:

  (piped-input-stream
    (fn [ostream]
      (spit ostream "Hello")))
sourceraw docstring

string-input-streamclj

(string-input-stream s)
(string-input-stream s encoding)

Returns a ByteArrayInputStream for the given String.

Returns a ByteArrayInputStream for the given String.
sourceraw docstring

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

× close