Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for readerClosedBeforeBomClosesUnderlyingSource (0.36 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

      @Test
      fun readerBomUtf32Le() {
        val body = body("fffe000068000000650000006c0000006c0000006f000000")
        assertThat(exhaust(body.charStream())).isEqualTo("hello")
      }
    
      @Test
      fun readerClosedBeforeBomClosesUnderlyingSource() {
        val closed = AtomicBoolean()
        val body: ResponseBody =
          object : ResponseBody() {
            override fun contentType(): MediaType? = null
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12.4K bytes
    - Click Count (0)
Back to Top