From ef657078f9aae973ad014f3132b37752379d712d Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 10 Aug 2020 23:33:09 +0200 Subject: [PATCH] Added available() --- src/dorkbox/executor/stream/nopStreams/NopInputStream.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dorkbox/executor/stream/nopStreams/NopInputStream.kt b/src/dorkbox/executor/stream/nopStreams/NopInputStream.kt index 9d28410..58158f4 100644 --- a/src/dorkbox/executor/stream/nopStreams/NopInputStream.kt +++ b/src/dorkbox/executor/stream/nopStreams/NopInputStream.kt @@ -27,6 +27,10 @@ class NopInputStream : InputStream() { val INPUT_STREAM = NopInputStream() } + override fun available(): Int { + return 0 + } + override fun read(): Int { return -1 }