From b47ca106609ee2cc5f326b8f65dc34a2e3498e39 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Thu, 8 Aug 2013 22:37:04 -0500 Subject: [PATCH] Bugfixes for NonBlockingInputStreamReader. --- project.properties | 6 +++--- ...eamReader.groovy => NonBlockingInputStreamReader.groovy} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/com/jdbernard/io/{NonBlockingStreamReader.groovy => NonBlockingInputStreamReader.groovy} (83%) diff --git a/project.properties b/project.properties index 54361c0..29d5193 100644 --- a/project.properties +++ b/project.properties @@ -1,6 +1,6 @@ -#Thu, 08 Aug 2013 20:03:53 -0500 +#Thu, 08 Aug 2013 20:37:37 -0500 name=jdb-util -version=1.10 +version=1.11 lib.local=true -build.number=0 +build.number=3 diff --git a/src/main/com/jdbernard/io/NonBlockingStreamReader.groovy b/src/main/com/jdbernard/io/NonBlockingInputStreamReader.groovy similarity index 83% rename from src/main/com/jdbernard/io/NonBlockingStreamReader.groovy rename to src/main/com/jdbernard/io/NonBlockingInputStreamReader.groovy index a9d712b..7f6c642 100644 --- a/src/main/com/jdbernard/io/NonBlockingStreamReader.groovy +++ b/src/main/com/jdbernard/io/NonBlockingInputStreamReader.groovy @@ -1,6 +1,6 @@ package com.jdbernard.io; -public class NonBlockingReader implements Runnable { +public class NonBlockingInputStreamReader implements Runnable { private Reader rin private LinkedList buffer = [] @@ -16,6 +16,6 @@ public class NonBlockingReader implements Runnable { public synchronized String readLine() { return buffer.poll() } private synchronized void storeLine(String line) { buffer << line } - public NonBlockingReader(def sin) { + public NonBlockingInputStreamReader(def sin) { this.rin = new InputStreamReader(sin) } }