Lines Matching defs: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.
333 /** The size of the data identified by this CacheHeader. (This is not
374 * @param is The InputStream to read from.
377 public static CacheHeader readHeader(InputStream is) throws IOException {
379 int magic = readInt(is);
384 entry.key = readString(is);
385 entry.etag = readString(is);
389 entry.serverDate = readLong(is);
390 entry.ttl = readLong(is);
391 entry.softTtl = readLong(is);
392 entry.responseHeaders = readStringStringMap(is);
470 private static int read(InputStream is) throws IOException {
471 int b = is.read();
485 static int readInt(InputStream is) throws IOException {
487 n |= (read(is) << 0);
488 n |= (read(is) << 8);
489 n |= (read(is) << 16);
490 n |= (read(is) << 24);
505 static long readLong(InputStream is) throws IOException {
507 n |= ((read(is) & 0xFFL) << 0);
508 n |= ((read(is) & 0xFFL) << 8);
509 n |= ((read(is) & 0xFFL) << 16);
510 n |= ((read(is) & 0xFFL) << 24);
511 n |= ((read(is) & 0xFFL) << 32);
512 n |= ((read(is) & 0xFFL) << 40);
513 n |= ((read(is) & 0xFFL) << 48);
514 n |= ((read(is) & 0xFFL) << 56);
524 static String readString(InputStream is) throws IOException {
525 int n = (int) readLong(is);
526 byte[] b = streamToBytes(is, n);
542 static Map<String, String> readStringStringMap(InputStream is) throws IOException {
543 int size = readInt(is);
548 String key = readString(is).intern();
549 String value = readString(is).intern();