1.2.3-SNAPSHOT Arrow_down_16x16

get-input-stream

incanter.core

  • (get-input-stream location)
Returns a java.io.FileInputStream when given a filename, or a
java.io.InputStream 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:2720 top

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

Comments top

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