return buffer.toString();
int lastCharIndex = buffer.length() - 1;   byte lastByte = (byte) buffer.charAt(lastCharIndex); if (lastByte == 13) { return buffer.substring(0, lastCharIndex); } else { return buffer.toString(); }
    private String readLine() throws IOException {	int i;	char c;	StringBuffer buffer = new StringBuffer();	while ((c = (char) dataReader.readByte()) != '\n') {	    if (debug) {		System.out.println(c);	    }	    buffer.append(c);	}	return buffer.toString();    }