Liking cljdoc? Tell your friends :D

ring.util.io

Utility functions for handling I/O.

close!

Type: var

Added: 1.2

Arguments:

[stream]
Ensure a stream is closed, swallowing any exceptions.

View source

last-modified-date

Type: var

Added: 1.2

Arguments:

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

View source

piped-input-stream

Type: var

Added: 1.1

Arguments:

[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")))

View source

string-input-stream

Type: var

Added: 1.1

Arguments:

[s]
[s encoding]
Returns a ByteArrayInputStream for the given String.

View source

Can you improve this documentation?Edit on GitHub

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

× close