Some utility functions for working with gzip in Clojure. Uses java.util.zip.GZIPInputStream and GZIPOutputStream under the hood.
Current leiningen dependency:
[piotr-yuxuan/gzip-util "0.1.0"]
Then two methods are available:
;; gzip a string:
(str->gzipped-bytes "string to compress")
;; un-gzip a java.io.InputStream, returning a UTF-8 encoded string:
(gzipped-input-stream->str input-stream "UTF-8")
Copyright © 2013 Greg Phillips
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation? These fine people already did:
Greg Phillips & piotr-yuxuanEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close