Lines Matching refs:is

11  * distributed under the License is distributed on an "AS IS" BASIS,
40 * directory. The default disk usage size is 5MB, but is configurable.
338 /** The size of the data identified by this CacheHeader. (This is not
379 * @param is The InputStream to read from.
382 public static CacheHeader readHeader(InputStream is) throws IOException {
384 int magic = readInt(is);
389 entry.key = readString(is);
390 entry.etag = readString(is);
394 entry.serverDate = readLong(is);
395 entry.ttl = readLong(is);
396 entry.softTtl = readLong(is);
397 entry.responseHeaders = readStringStringMap(is);
475 private static int read(InputStream is) throws IOException {
476 int b = is.read();
490 static int readInt(InputStream is) throws IOException {
492 n |= (read(is) << 0);
493 n |= (read(is) << 8);
494 n |= (read(is) << 16);
495 n |= (read(is) << 24);
510 static long readLong(InputStream is) throws IOException {
512 n |= ((read(is) & 0xFFL) << 0);
513 n |= ((read(is) & 0xFFL) << 8);
514 n |= ((read(is) & 0xFFL) << 16);
515 n |= ((read(is) & 0xFFL) << 24);
516 n |= ((read(is) & 0xFFL) << 32);
517 n |= ((read(is) & 0xFFL) << 40);
518 n |= ((read(is) & 0xFFL) << 48);
519 n |= ((read(is) & 0xFFL) << 56);
529 static String readString(InputStream is) throws IOException {
530 int n = (int) readLong(is);
531 byte[] b = streamToBytes(is, n);
547 static Map<String, String> readStringStringMap(InputStream is) throws IOException {
548 int size = readInt(is);
553 String key = readString(is).intern();
554 String value = readString(is).intern();