From dc893ae7b21a9f97c0cfabb7fe1612b9c1f4995d Mon Sep 17 00:00:00 2001 From: Joshua Eckroth Date: Wed, 10 Dec 2014 08:56:05 -0500 Subject: [PATCH] Fixed input stream reading. --- project.clj | 2 +- src/propertea/core.clj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)))