Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 146 for sina (0.01 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,
    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. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

            if (closed) return
            try {
              super.close()
            } finally {
              closedLatch.countDown()
            }
          }
        }.buffer()
    
      override val sink: BufferedSink =
        object : ForwardingSink(delegate.sink) {
          private var closed = false
    
          override fun close() {
            if (closed) return
            try {
              super.close()
            } finally {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/Progress.java

        }
    
        private Source source(Source source) {
          return new ForwardingSource(source) {
            long totalBytesRead = 0L;
    
            @Override public long read(Buffer sink, long byteCount) throws IOException {
              long bytesRead = super.read(sink, byteCount);
              // read() returns the number of bytes read, or -1 if this source is exhausted.
              totalBytesRead += bytesRead != -1 ? bytesRead : 0;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

        assertThat(body.bytes()).isEqualTo(text)
      }
    }
    
    abstract class ForwardingSource(
      val delegate: Source,
    ) : Source {
      override fun read(
        sink: Buffer,
        byteCount: Long,
      ): Long = delegate.read(sink, byteCount)
    
      override fun timeout() = delegate.timeout()
    
      override fun close() = delegate.close()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/AbstractByteHasher.java

    import java.nio.ByteOrder;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Abstract {@link Hasher} that handles converting primitives to bytes using a scratch {@code
     * ByteBuffer} and streams all bytes to a sink to compute the hash.
     *
     * @author Colin Decker
     */
    abstract class AbstractByteHasher extends AbstractHasher {
      private @Nullable ByteBuffer scratch;
    
      /** Updates this hasher with the given byte. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 12:40:17 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/main/resources/fess_label_de.properties

    labels.wizard_button_finish=Überspringen
    labels.search_list_configuration=Suchen
    labels.search_list_button_delete=Löschen
    labels.search_list_delete_confirmation=Sind Sie sicher, dass Sie löschen möchten?
    labels.search_list_button_delete_all=Alle mit dieser Abfrage löschen
    labels.search_list_delete_all_confirmation=Sind Sie sicher, dass Sie alle mit dieser Abfrage löschen möchten?
    labels.search_list_button_cancel=Abbrechen
    labels.failure_url_configuration=Fehler-URL
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 04:56:21 UTC 2025
    - 43.5K bytes
    - Viewed (1)
  7. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

        class StreamingBody(
          private val body: String,
        ) : RequestBody() {
          override fun contentType(): MediaType? = null
    
          @Throws(IOException::class)
          override fun writeTo(sink: BufferedSink) {
            sink.writeUtf8(body)
          }
        }
    
        val expected =
          """
          |--123
          |
          |Quick
          |--123
          |
          |Brown
          |--123
          |
          |Fox
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            private var cacheRequestClosed = false
    
            @Throws(IOException::class)
            override fun read(
              sink: Buffer,
              byteCount: Long,
            ): Long {
              val bytesRead: Long
              try {
                bytesRead = source.read(sink, byteCount)
              } catch (e: IOException) {
                if (!cacheRequestClosed) {
                  cacheRequestClosed = true
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        assertExpectedString(builder.toString());
      }
    
      public void testCopyTo_charSink() throws IOException {
        TestCharSink sink = new TestCharSink();
    
        assertEquals(expected.length(), source.copyTo(sink));
    
        assertExpectedString(sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        String string = source.read();
        assertExpectedString(string);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        )
        val asyncRequestBody: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? = null
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
            override fun isDuplex(): Boolean = true
          }
        val request =
          request()
            .post(asyncRequestBody)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
Back to top