Liking cljdoc? Tell your friends :D

clj-compress.core


archive-extensionsclj

source

compress-dataclj

(compress-data src dest compressor)

compress src using particular compressor and write compressed data into dest. src can be InputStream, File, URI, URL, Socket, byte array, or String. dest can be OutputStream, File, URI, URL, Socket, and String When src or dest is String then it is treated as filename. compressor - should be one strings from compressors return number of processed bytes from input stream (length of src). dest will receive raw compressed bytes.

compress `src` using particular `compressor` and write compressed data into `dest`.
`src` can be InputStream, File, URI, URL, Socket, byte array, or String.
`dest` can be OutputStream, File, URI, URL, Socket, and String
 When `src` or `dest` is String then it is treated as filename.
`compressor` - should be one strings from `compressors`
return number of processed bytes from input stream (length of src).
`dest` will receive raw compressed bytes.
sourceraw docstring

compressorsclj

source

create-archiveclj

(create-archive new-arch-name input-files-vec out-folder compressor)

Create archive for given bulk of files or folders input-files-vec (String names vector). An archive may be decompressed by external tools (tar, unzip, bunzip2 etc...). New archive file will be placed to out-folder. new-arch-name - only name of new archive without extension or path (e.g. "myarc") At first, input data is moved to tar archive, then tar archive is compressed by compressor. An archive extension will be added automatically and depends on compressor type. Returns created archive file name as String.

Create archive for given bulk of files or folders `input-files-vec` (String names vector).
An archive may be decompressed by external tools (tar, unzip, bunzip2 etc...).
New archive file will be placed to `out-folder`.
`new-arch-name` - only name of new archive without extension or path (e.g. "myarc")
At first, input data is moved to tar archive, then tar archive is compressed by `compressor`.
An archive extension will be added automatically and depends on `compressor` type.
Returns created archive file name as `String`.
sourceraw docstring

decompress-archiveclj

(decompress-archive arch-name out-folder & [compressor])

decompress data from archive to out-folder directory. Warning! In out-folder files will be overwritten by decompressed data from arch-name. compressor is optional argument, ArchiveStreamFactory tries to guess compressor type based on archive extension. returns number of decompressed entries (files).

decompress data from archive to `out-folder` directory.
Warning! In `out-folder` files will be overwritten by decompressed data from `arch-name`.
`compressor` is optional argument, ArchiveStreamFactory tries to guess compressor type based on archive extension.
returns number of decompressed entries (files).
sourceraw docstring

decompress-dataclj

(decompress-data src dest decompressor)

decompress src using particular decompressor and write normal data into dest. src can be InputStream, File, URI, URL, Socket, byte array, or String with compressed data. dest can be OutputStream, File, URI, URL, Socket, and String When src or dest is String then it is treated as filename. decompressor - should be one strings from compressors return number of bytes written to dest (length of normal data).

decompress `src` using particular `decompressor` and write normal data into `dest`.
`src` can be InputStream, File, URI, URL, Socket, byte array, or String with compressed data.
`dest` can be OutputStream, File, URI, URL, Socket, and String
 When `src` or `dest` is String then it is treated as filename.
`decompressor` - should be one strings from `compressors`
return number of bytes written to dest (length of normal data).
sourceraw docstring

list-archiveclj

(list-archive arch-name & [compressor])

return list of archived items

return list of archived items
sourceraw docstring

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

× close