diff --git a/CHANGELOG.md b/CHANGELOG.md index e1dbdaac..5b6d8c11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ A preview of the next release can be installed from ## Unreleased -... +- Add single argument read method support to PipedInputStream proxy ([@retrogradeorbit](https://github.com/retrogradeorbit)) ## 0.10.163 (2022-09-24) diff --git a/src/babashka/impl/proxy.clj b/src/babashka/impl/proxy.clj index 707ba250..f40b7ab1 100644 --- a/src/babashka/impl/proxy.clj +++ b/src/babashka/impl/proxy.clj @@ -86,8 +86,10 @@ (read ([] ((method-or-bust methods 'read) this)) - ([b off len] - ((method-or-bust methods 'read) this b off len))) + ([bs] + ((method-or-bust methods 'read) this bs)) + ([bs off len] + ((method-or-bust methods 'read) this bs off len))) (receive [b] ((method-or-bust methods 'receive) this b))) ["java.io.PipedOutputStream" #{}]