Bugfixes for NonBlockingInputStreamReader.

This commit is contained in:
Jonathan Bernard 2013-08-08 22:37:04 -05:00
parent 7c8a3be4ac
commit b47ca10660
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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) }
}