Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readBomAsCharset (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

    import okhttp3.internal.commonAsResponseBody
    import okhttp3.internal.commonByteString
    import okhttp3.internal.commonBytes
    import okhttp3.internal.commonClose
    import okhttp3.internal.commonToResponseBody
    import okhttp3.internal.readBomAsCharset
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString
    
    /**
     * A one-shot stream from the origin server to the client application with the raw bytes of the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      vararg args: Any,
    ): String {
      return String.format(Locale.US, format, *args)
    }
    
    /**
     * will also strip BOM from the source
     */
    @Throws(IOException::class)
    internal fun BufferedSource.readBomAsCharset(default: Charset): Charset {
      return when (select(UNICODE_BOMS)) {
        // a mapping from the index of encoding methods in UNICODE_BOMS to its corresponding encoding method
        0 -> UTF_8
        1 -> UTF_16BE
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/_UtilJvmKt;->headersContentLength(Lokhttp3/Response;)J
    HSPLokhttp3/internal/_UtilJvmKt;->immutableListOf([Ljava/lang/Object;)Ljava/util/List;
    HSPLokhttp3/internal/_UtilJvmKt;->readBomAsCharset(Lokio/BufferedSource;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
    HSPLokhttp3/internal/_UtilJvmKt;->toHeaders(Ljava/util/List;)Lokhttp3/Headers;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top