Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ensureLoaded (0.06 sec)

  1. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/ConfiguredPublicSuffixList.kt

    import okio.ByteString
    
    /**
     * An implementation of I/O for `PublicSuffixDatabase` by directly passing in ByteStrings.
     */
    internal class ConfiguredPublicSuffixList : PublicSuffixList {
      override fun ensureLoaded() {
      }
    
      override var bytes: ByteString = ByteString.EMPTY
    
      override var exceptionBytes: ByteString = ByteString.EMPTY
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 978 bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixList.kt

     * limitations under the License.
     */
    package okhttp3.internal.publicsuffix
    
    import okio.ByteString
    
    /**
     * Basic I/O for `PublicSuffixDatabase.list`
     */
    internal interface PublicSuffixList {
      fun ensureLoaded()
    
      val bytes: ByteString
      val exceptionBytes: ByteString
    
      companion object
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 929 bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

            this.exceptionBytes = publicSuffixExceptionListBytes!!
          }
        } finally {
          readCompleteLatch.countDown()
        }
      }
    
      abstract fun listSource(): Source
    
      override fun ensureLoaded() {
        if (!listRead.get() && listRead.compareAndSet(false, true)) {
          readTheListUninterruptibly()
        } else {
          try {
            readCompleteLatch.await()
          } catch (_: InterruptedException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

          return domainLabels.dropLast(1)
        }
    
        return domainLabels
      }
    
      private fun findMatchingRule(domainLabels: List<String>): List<String> {
        publicSuffixList.ensureLoaded()
    
        // Break apart the domain into UTF-8 labels, i.e. foo.bar.com turns into [foo, bar, com].
        val domainLabelsUtf8Bytes = Array(domainLabels.size) { i -> domainLabels[i].encodeUtf8() }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top