diff --git a/project.clj b/project.clj index 1e405a4..85a14ff 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject cc.artifice/propertea "1.4.0" +(defproject cc.artifice/propertea "1.4.1" :description "load, coerce, and validate property files" :dependencies [[org.clojure/clojure "1.5.1"] [expectations "2.0.13"]] diff --git a/src/propertea/core.clj b/src/propertea/core.clj index a28a890..f6e383d 100644 --- a/src/propertea/core.clj +++ b/src/propertea/core.clj @@ -1,6 +1,6 @@ (ns propertea.core (:require clojure.walk clojure.set clojure.string) - (:import [java.io FileReader InputStream] + (:import [java.io FileReader BufferedInputStream] [java.util Properties])) (defn keywordize-keys-unless [m b] @@ -111,7 +111,7 @@ (validate required) (dump dump-fn))) -(defmethod read-properties InputStream [stream & x] +(defmethod read-properties BufferedInputStream [stream & x] (let [props (input-stream->properties stream)] (apply read-properties props x)))