Skip to content

Some utility functions for working with gzip in Clojure.

Notifications You must be signed in to change notification settings

gphil/gzip-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gzip-util

Some utility functions for working with gzip in Clojure. Uses java.util.zip.GZIPInputStream and GZIPOutputStream under the hood.

Usage

Current leiningen dependency:

[gzip-util "0.1.0-SNAPSHOT"]
;; 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")

License

Copyright © 2013 Greg Phillips

Distributed under the Eclipse Public License, the same as Clojure.

About

Some utility functions for working with gzip in Clojure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published