Created
January 7, 2013 16:08
-
-
Save phuff/4476119 to your computer and use it in GitHub Desktop.
Current version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn writeZipOutput [zip-output filename content] | |
(let [contentBytes (.getBytes content "UTF-8")] | |
(.putNextEntry zip-output (new ZipEntry filename)) | |
(.write zip-output contentBytes (.length contentBytes)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment