- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for readBomAsCharset (0.08 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
import java.io.InputStreamReader import java.io.Reader import java.nio.charset.Charset import okhttp3.internal.charsetOrUtf8 import okhttp3.internal.chooseCharset import okhttp3.internal.closeQuietly import okhttp3.internal.readBomAsCharset import okio.Buffer import okio.BufferedSource import okio.ByteString import okio.use /** * A one-shot stream from the origin server to the client application with the raw bytes of the
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 11.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
format: String, vararg args: Any, ): String = String.format(Locale.US, format, *args) /** * will also strip BOM from the source */ @Throws(IOException::class) internal fun BufferedSource.readBomAsCharset(default: Charset): Charset = 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 2 -> UTF_32LE
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 10.2K bytes - Viewed (0)