1.2.3-SNAPSHOT Arrow_down_16x16

get-input-reader

incanter.core

  • (get-input-reader location)
Returns a java.io.FileReader when given a filename, or a
java.io.InputStreamReader when given a URL.

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 incanter/core.clj:2711 top

(defn get-input-reader
  "Returns a java.io.FileReader when given a filename, or a
   java.io.InputStreamReader when given a URL."
  [location] 
  (try
    (java.io.InputStreamReader. (.openStream (java.net.URL. location)))
  (catch java.net.MalformedURLException _
    (java.io.FileReader. location))))
Vars in incanter.core/get-input-reader: defn
Used in 0 other vars

Comments top

No comments for get-input-reader. Log in to add a comment.