available = buffer.length - offset;
}
}
if(c == -1) {
Log.error("-1 read count in readLine() while reading response line.");
throw new UnexpectedEOFException ("Unexpected EOF (read -1) in readLine. Command: " + cmd.code);
}
if((this.isError = buffer[0] == ProtocolBase.ERR_BYTE) == true)
status = new ResponseStatus(ResponseStatus.Code.ERROR, new String(buffer, 1, offset-3));
else
status = ResponseStatus.STATUS_OK;