Liking cljdoc? Tell your friends :D

cljam.util

General utilities.

General utilities.
raw docstring

as-urlclj

(as-url x)
source

basenameclj

(basename x)
source

bytes->stringclj

(bytes->string b)
source

compressor-input-streamclj

(compressor-input-stream f)

Returns a compressor input stream from f, autodetecting the compressor type from the first few bytes of f. Returns java.io.BufferedInputStream if the compressor type is not known. Should be used inside with-open to ensure the InputStream is properly closed.

Returns a compressor input stream from f, autodetecting the compressor type
from the first few bytes of f. Returns java.io.BufferedInputStream if the
compressor type is not known. Should be used inside with-open to ensure the
InputStream is properly closed.
sourceraw docstring

compressor-output-streamclj

(compressor-output-stream f)
(compressor-output-stream f k)

Returns a compressor output stream from f and a compressor type k. k must be selected from :gzip or :bzip2. Autodetects the compressor type from the extension of f if k is not passed. Returns java.io.BufferedOutputStream if the compressor type is not known. Should be used inside with-open to ensure the OutputStream is properly closed.

Returns a compressor output stream from f and a compressor type k. k must be
selected from :gzip or :bzip2. Autodetects the compressor type from the
extension of f if k is not passed. Returns java.io.BufferedOutputStream if the
compressor type is not known. Should be used inside with-open to ensure the
OutputStream is properly closed.
sourceraw docstring

create-temp-dirclj

(create-temp-dir prefix)

Returns a created temporary directory with the given prefix.

Returns a created temporary directory with the given `prefix`.
sourceraw docstring

delete-temp-dir!clj

(delete-temp-dir! dir)

Takes the temporary directory created by create-temp-dir and deletes the dir and the files in dir.

Takes the temporary directory created by `create-temp-dir` and deletes the
`dir` and the files in `dir`.
sourceraw docstring

graph?clj

(graph? c)

Returns true if c is a visible character, false if not.

Returns true if c is a visible character, false if not.
sourceraw docstring

space?clj

(space? c)

Returns true if c is a character that creates "white space" in displayed text.

Returns true if c is a character that creates "white space" in displayed
text.
sourceraw docstring

string->bytesclj

(string->bytes s)
source

ubyteclj

(ubyte n)

Casts to byte avoiding an error about out of range for byte.

Casts to byte avoiding an error about out of range for byte.
sourceraw docstring

with-temp-dircljmacro

(with-temp-dir bindings & body)

bindings => [dir prefix ...] Creates a temporary directory with the given prefix and binds the given dir to it. Finally, deletes dir and the files in dir.

bindings => [dir prefix ...]
Creates a temporary directory with the given `prefix` and binds the given
`dir` to it. Finally, deletes `dir` and the files in `dir`.
sourceraw docstring

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

× close