if (_bufferedReader == null) { getBufferedReader();
for (int i=0; i < length - 1; i++) { readChar = _in.read(); if (readChar >= 0) { sbv.append( (char)readChar ); if (readChar == '\n' || readChar == '\r') break; } else break;
  public Value gzgets(int length)  {    try {      if (_bufferedReader == null) {        getBufferedReader();      }      StringBuilderValue sbv = new StringBuilderValue();      int readChar;      for (int i=0; i < length - 1; i++) {	readChar = _bufferedReader.read();	if (readChar >= 0) {                    sbv.append( (char)readChar );	  if ((((char) readChar) == '\n') || (((char) readChar) == '\r'))	    break;	} else	  break;      }      if( sbv.length() > 0)        return sbv;      else        return BooleanValue.FALSE;    } catch (Exception e) {      throw QuercusModuleException.create(e);    }  }