Liking cljdoc? Tell your friends :D

hara.io.archive


archiveclj

(archive archive root)
(archive archive root inputs)

puts files into an archive

(archive "hello/stuff.jar" "src")

puts files into an archive

(archive "hello/stuff.jar" "src")
raw docstring

extractclj

(extract archive)
(extract archive output)
(extract archive output entries)

extracts all file from an archive

(extract "hello/stuff.jar")

(extract "hello/stuff.jar" "output")

(extract "hello/stuff.jar" "output" ["world.java"])

extracts all file from an archive

(extract "hello/stuff.jar")

(extract "hello/stuff.jar" "output")

(extract "hello/stuff.jar"
         "output"
         ["world.java"])
raw docstring

has?clj

(has? archive entry)

checks if the archive has a particular entry

(has? "hello/stuff.jar" "world.java") => false

checks if the archive has a particular entry

(has? "hello/stuff.jar" "world.java")
=> false
raw docstring

insertclj

(insert archive entry input)

inserts a file to an entry within the archive

(insert "hello/stuff.jar" "world.java" "path/to/world.java")

inserts a file to an entry within the archive

(insert "hello/stuff.jar" "world.java" "path/to/world.java")
raw docstring

listclj

(list archive)

lists all the entries in the archive

(list "hello/stuff.jar") ;;=> [#path:"/"]

lists all the entries in the archive

(list "hello/stuff.jar")
;;=> [#path:"/"]
raw docstring

openclj

(open archive)

either opens an existing archive or creates one if it doesn't exist

(open "hello/stuff.jar") ;;=> creates a zip-file

either opens an existing archive or creates one if it doesn't exist

(open "hello/stuff.jar")
;;=> creates a zip-file
raw docstring

pathclj

(path archive entry)

returns the url of the archive

(-> (open "hello/stuff.jar") (path "world.java") (str)) => "world.java"

returns the url of the archive

(-> (open "hello/stuff.jar")
    (path "world.java")
    (str))
=> "world.java"
raw docstring

removeclj

(remove archive entry)

removes an entry from the archive

(remove "hello/stuff.jar" "world.java")

removes an entry from the archive

(remove "hello/stuff.jar" "world.java")
raw docstring

streamclj

(stream archive entry)

creates a stream for an entry wthin the archive

(stream "hello/stuff.jar" "world.java")

creates a stream for an entry wthin the archive

(stream "hello/stuff.jar" "world.java")
raw docstring

supportedclj


urlclj

(url archive)

returns the url of the archive

(url (open "hello/stuff.jar")) => "/Users/chris/Development/chit/lucidity/hello/stuff.jar"

returns the url of the archive

(url (open "hello/stuff.jar"))
=> "/Users/chris/Development/chit/lucidity/hello/stuff.jar"
raw docstring

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

× close