• (to-byte-array arg)
Converts argument into a Java byte array. Argument may be
a String, File, InputStream, or Reader. If the argument is already
a byte array, returns it.

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/contrib/duck_streams.clj:393 top

(defmulti
  ^{:doc "Converts argument into a Java byte array.  Argument may be
  a String, File, InputStream, or Reader.  If the argument is already
  a byte array, returns it."
    :arglists '([arg])}
  to-byte-array type)
Vars in clojure.contrib.duck-streams/to-byte-array: defmulti type
Used in 0 other vars

Comments top

No comments for to-byte-array. Log in to add a comment.