Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for listSource (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

      @Throws(IOException::class)
      private fun readTheList() {
        var publicSuffixListBytes: ByteString?
        var publicSuffixExceptionListBytes: ByteString?
    
        try {
          listSource().buffer().use { bufferedSource ->
            val totalBytes = bufferedSource.readInt()
            publicSuffixListBytes = bufferedSource.readByteString(totalBytes.toLong())
    
            val totalExceptionBytes = bufferedSource.readInt()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/ResourcePublicSuffixList.kt

    import okio.Source
    
    internal class ResourcePublicSuffixList(
      override val path: Path = PUBLIC_SUFFIX_RESOURCE,
      val fileSystem: FileSystem = FileSystem.Companion.RESOURCES,
    ) : BasePublicSuffixList() {
      override fun listSource(): Source = fileSystem.source(path)
    
      companion object {
        @JvmField
        val PUBLIC_SUFFIX_RESOURCE =
          "okhttp3/internal/publicsuffix/${PublicSuffixDatabase::class.java.simpleName}.list".toPath()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt

    import okio.Source
    import okio.source
    
    internal class AssetPublicSuffixList(
      override val path: String = PUBLIC_SUFFIX_RESOURCE,
    ) : BasePublicSuffixList() {
      override fun listSource(): Source {
        val assets = PlatformRegistry.applicationContext?.assets
    
        if (assets == null) {
          if (Build.FINGERPRINT == null) {
            throw IOException(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top