1.3.0 permalink Arrow_down_16x16

resource

clojure.java.io

  • (resource n)
  • (resource n loader)
Returns the URL for a named resource. Use the context class loader
if no loader is specified.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/java/io.clj:423 top

(defn ^URL resource
  "Returns the URL for a named resource. Use the context class loader
   if no loader is specified."
  {:added "1.2"}
  ([n] (resource n (.getContextClassLoader (Thread/currentThread))))
  ([n ^ClassLoader loader] (.getResource loader n)))
Vars in clojure.java.io/resource:
Used in 0 other vars

Comments top

No comments for resource. Log in to add a comment.