Lines Matching refs:read
431 * Utility method to read a line of data from the input stream
432 * @param is Inputstream to read
433 * @return number of bytes read
437 int read = 0;
443 int data = is.read();
450 buf[read] = (byte)data;
455 if (buf[read++]==(byte)'\n') {
457 return read;
464 return read;
469 * @param is Stream from which to read data
470 * @param length Amount of data to read
471 * @return number of bytes read
474 int read = 0;
481 count = is.read(buf, read, length-read);
482 read += count;
488 return read;
494 * @param is Inputstream to read
495 * @return number of bytes read
564 * @param is Inputstream to read
565 * @return number of bytes read
602 * @param is Inputstream to read
603 * @return number of bytes read
623 * @param is Inputstream to read
624 * @return number of bytes read
645 /* we will only block in read for this many milliseconds
656 // If status line found, read any headers
659 // Then read content (if any)