Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ForwardingSink (0.28 sec)

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

        @Throws(IOException::class)
        override fun contentLength(): Long = delegate.contentLength()
    
        @Throws(IOException::class)
        override fun writeTo(sink: BufferedSink) {
          val forwardingSink =
            object : ForwardingSink(sink) {
              private var totalBytesWritten: Long = 0
              private var completed = false
    
              override fun write(
                source: Buffer,
                byteCount: Long,
    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. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

    import okhttp3.MediaType;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.RequestBody;
    import okhttp3.Response;
    import okio.Buffer;
    import okio.BufferedSink;
    import okio.ForwardingSink;
    import okio.Okio;
    import okio.Sink;
    import java.io.File;
    import java.io.IOException;
    
    public final class UploadProgress {
      private static final String IMGUR_CLIENT_ID = "9199fdef135c122";
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  3. docs/recipes.md

              override fun contentLength(): Long = delegate.contentLength()
    
              @Throws(IOException::class)
              override fun writeTo(sink: BufferedSink) {
                val forwardingSink = object : ForwardingSink(sink) {
                  private var totalBytesWritten: Long = 0
                  private var completed = false
    
                  override fun write(source: Buffer, byteCount: Long) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
Back to top