Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 74 of 74 for exhausted (0.04 sec)

  1. guava-tests/test/com/google/common/io/BaseEncodingTest.java

            // See https://github.com/google/guava/issues/3542
            Reader reader = new StringReader(cannotDecode);
            InputStream decodingStream = encoding.decodingStream(reader);
            try {
              ByteStreams.exhaust(decodingStream);
              fail("Expected DecodingException");
            } catch (DecodingException expected) {
              // Don't assert on the expectedMessage; the messages for exceptions thrown from the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

        } finally {
          closer.close();
        }
    
        closer = Closer.create();
        try {
          InputStream in = closer.register(openStream());
          return ByteStreams.exhaust(in);
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /** Counts the bytes in the given input stream using skip if possible. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteStreams.java

       * reached. Returns the total number of bytes read. Does not close the stream.
       *
       * @since 20.0
       */
      @CanIgnoreReturnValue
      public static long exhaust(InputStream in) throws IOException {
        long total = 0;
        long read;
        byte[] buf = createBuffer();
        while ((read = in.read(buf)) != -1) {
          total += read;
        }
        return total;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

     *  Fix: Don't corrupt the response cache when a 304 (Not Modified) response
        overrides the stored "Content-Encoding" header.
     *  Fix: Gracefully shut down the HTTP/2 connection before it exhausts the
        namespace of stream IDs (~536 million streams).
     *  Fix: Never pass a null `Route` to `Authenticator`. There was a bug where
        routes were omitted for eagerly-closed connections.
    
    ## Version 3.9.1
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top