Skip to content

arosequist/clj-jdk7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-jdk7

Wrappers for new functionality introduced in JDK7.

Status

This library is no longer actively maintained. You should use something like hawk instead.

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.

About

Clojure wrappers for new Java 7 functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published