Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 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)
Back to top