Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for contentsEqual (0.06 seconds)

  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();
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (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);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 31.1K bytes
    - Click Count (0)
Back to Top