Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 300 for rewrite (0.05 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

            object : ForwardingSink(sink) {
              private var totalBytesWritten: Long = 0
              private var completed = false
    
              override fun write(
                source: Buffer,
                byteCount: Long,
              ) {
                super.write(source, byteCount)
                totalBytesWritten += byteCount
                progressListener.update(totalBytesWritten, contentLength(), completed)
              }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. docs/changelogs/upgrading_to_okhttp_4.md

    sed -i "" \
      's/^\(import okhttp3\.[^.]*\)\.\([a-z][a-zA-Z]*\)$/\1.Companion.\2/g' \
      `find . -name "*.kt"`
    ```
    
    
    Advanced Profiling
    ------------------
    
    Android Studio’s Advanced Profiling feature rewrites OkHttp bytecode for instrumentation.
    Unfortunately it crashes on OkHttp 4.x’s bytecode. Until [Google’s bug][advanced_profiling_bug] is
    fixed you must disable advanced profiling in Android Studio.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/SneakyThrows.java

       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
       *
       * <p>We sometimes also use {@code sneakyThrow} for testing how our code responds to
       * sneaky checked exception.
       *
       * @return never; this method declares a return type of {@link Error} only so that callers can
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/SneakyThrows.java

       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
       *
       * <p>We sometimes also use {@code sneakyThrow} for testing how our code responds to
       * sneaky checked exception.
       *
       * @return never; this method declares a return type of {@link Error} only so that callers can
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

       * is transmitted. If you cannot ensure that your client and server both support HTTP/2, do not
       * use this feature.
       *
       * ### Duplex APIs
       *
       * With regular request bodies it is not legal to write bytes to the sink passed to
       * [RequestBody.writeTo] after that method returns. For duplex requests bodies that condition is
       * lifted. Such writes occur on an application-provided thread and may occur concurrently with
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 04 17:43:43 UTC 2025
    - 9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

         */
        Waiter(boolean unused) {}
    
        Waiter() {
          // avoid volatile write, write is made visible by subsequent CAS on waitersField field
          putThread(this, Thread.currentThread());
        }
    
        // non-volatile write to the next field. Should be made visible by a subsequent CAS on
        // waitersField.
        void setNext(@Nullable Waiter next) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/nio/ChannelUtil.java

         * @return The number of bytes written.
         */
        public static int write(final FileChannel channel, final ByteBuffer buffer) {
            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("buffer", buffer);
    
            try {
                return channel.write(buffer);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

       *
       * 1. visibility of the writes to these fields to Fire.run:
       *
       * The initial write to delegateRef is made definitely visible via the semantics of
       * addListener/SES.schedule. The later racy write in cancel() is not guaranteed to be observed,
       * however that is fine since the correctness is based on the atomic state in our base class. The
       * initial write to timer is never definitely visible to Fire.run since it is assigned after
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

                }
            });
        }
    
        /**
         * Writes OpenSearch JSON API responses to the ZIP output stream.
         *
         * @param zos the ZIP output stream to write to
         * @param id the diagnostic ID for organizing files in the ZIP
         */
        protected void writeFesenJson(final ZipOutputStream zos, final String id) {
            writeElastisearchJsonApi(zos, id, "cluster", "health");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

         */
        Waiter(boolean unused) {}
    
        Waiter() {
          // avoid volatile write, write is made visible by subsequent CAS on waitersField field
          putThread(this, Thread.currentThread());
        }
    
        // non-volatile write to the next field. Should be made visible by a subsequent CAS on
        // waitersField.
        void setNext(@Nullable Waiter next) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
Back to top