Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for contentsEqual (0.7 sec)

  1. android/guava/src/com/google/common/io/ByteSource.java

       */
      public boolean contentEquals(ByteSource other) throws IOException {
        checkNotNull(other);
    
        Closer closer = Closer.create();
        try {
          return ByteStreams.contentsEqual(
              closer.register(openStream()), closer.register(other.openStream()));
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 20:55:20 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/ByteStreams.java

          if (result == -1) {
            break;
          }
          total += result;
        }
        return total;
      }
    
      /** Compares the contents of the two {@link InputStream}s for equality. */
      static boolean contentsEqual(InputStream in1, InputStream in2) throws IOException {
        byte[] buf1 = createBuffer();
        byte[] buf2 = createBuffer();
        while (true) {
          int read1 = read(in1, buf1, 0, BUFFER_SIZE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
Back to top