(bytes->str b & [encoding])
Returns the String corresponding to the given encoding's decoding of the given bytes. If no encoding is specified, UTF-8 is used.
Returns the String corresponding to the given encoding's decoding of the given bytes. If no encoding is specified, UTF-8 is used.
(copy-compress input-stream output-stream compress-fn)
Copies data from input-stream to output-stream with compression. Returns the number of bytes written.
Copies data from input-stream to output-stream with compression. Returns the number of bytes written.
(copy-decompress input-stream output-stream decompress-fn)
Copies data from input-stream to output-stream with decompression. Returns the number of bytes written.
Copies data from input-stream to output-stream with decompression. Returns the number of bytes written.
(deflate b)
(deflate b level)
Returns deflate'd version of the given byte array.
Returns deflate'd version of the given byte array.
(deflate-stream input-stream)
(deflate-stream input-stream level)
Returns a DeflaterInputStream for streaming deflation. Useful for large files that shouldn't be loaded entirely into memory.
Returns a DeflaterInputStream for streaming deflation. Useful for large files that shouldn't be loaded entirely into memory.
(force-byte-array b)
force b as byte array if it is an InputStream, also close the stream
force b as byte array if it is an InputStream, also close the stream
(gunzip b)
Returns a gunzip'd version of the given byte array.
Returns a gunzip'd version of the given byte array.
(gunzip-stream input-stream)
(gunzip-stream input-stream buffer-size)
Returns a GZIPInputStream for streaming gzip decompression. Useful for large files that shouldn't be loaded entirely into memory.
Returns a GZIPInputStream for streaming gzip decompression. Useful for large files that shouldn't be loaded entirely into memory.
(gzip b)
Returns a gzip'd version of the given byte array.
Returns a gzip'd version of the given byte array.
(gzip-stream output-stream)
(gzip-stream output-stream buffer-size)
Returns a GZIPOutputStream for streaming gzip compression. Useful for large files that shouldn't be loaded entirely into memory.
Returns a GZIPOutputStream for streaming gzip compression. Useful for large files that shouldn't be loaded entirely into memory.
(inflate b)
Returns a zlib inflate'd version of the given byte array or InputStream.
Returns a zlib inflate'd version of the given byte array or InputStream.
(inflate-stream input-stream)
Returns an InflaterInputStream for streaming inflation. Useful for large files that shouldn't be loaded entirely into memory.
Returns an InflaterInputStream for streaming inflation. Useful for large files that shouldn't be loaded entirely into memory.
(str->bytes s & [encoding])
Returns the encoding's bytes corresponding to the given string. If no encoding is specified, UTF-8 is used.
Returns the encoding's bytes corresponding to the given string. If no encoding is specified, UTF-8 is used.
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 |