import java.io.*; /** * Created by IntelliJ IDEA. * User: me * Date: 13.09.2006 * Time: 18:07:32 * To change this template use File | Settings | File Templates. */ super(reader); } int c; synchronized (lock) { while ((c = read()) != -1) { ret.append((char)c); } } return ret; } } // Separate Test Class public class LineReaderTest { StringBuffer line; while ((line = lr.ReadLine()).length() != 0) { } fin.close(); } }