Clojure wrappers for new Java 7 functionality.
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
src/clj_jdk7
test/clj_jdk7/test
.classpath
.gitignore
.project
README.md
project.clj

README.md

clj-jdk7

Wrappers for new functionality introduced in JDK7.

Status

This library is no longer actively maintained and will probably be removed soon.

Installation

clj-jdk7 on clojars

Usage

See the autodocs

Examples

Watch a folder for new, modified, and deleted files:

(add-fs-watch
  #(println (.toString %1) %2)
  "/home/user/watch"
  [:create :modify :delete])

Create two temporary files, which will be deleted when the body completes:

(with-temp-file [temp1 (create-temp-file)
                 temp2 (create-temp-file :suffix ".txt")]
  (println (.toString temp1))
  (println (.toString temp2)))

Same as above, but a shortcut for only one file:

(with-temp-file temp
  (println (.toString temp)))

License

Copyright (C) 2011 Anthony Rosequist

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