Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for appendingSink (0.2 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/okio/LoggingFilesystem.kt

    class LoggingFilesystem(fileSystem: FileSystem) : ForwardingFileSystem(fileSystem) {
      fun log(line: String) {
        println(line)
      }
    
      override fun appendingSink(
        file: Path,
        mustExist: Boolean,
      ): Sink {
        log("appendingSink($file)")
    
        return super.appendingSink(file, mustExist)
      }
    
      override fun atomicMove(
        source: Path,
        target: Path,
      ) {
        log("atomicMove($source, $target)")
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

      ) {
        if (deleteFaults.contains(fileOrDirectory)) throw IOException("boom!")
        super.deleteRecursively(fileOrDirectory, mustExist)
      }
    
      override fun appendingSink(
        file: Path,
        mustExist: Boolean,
      ): Sink = FaultySink(super.appendingSink(file, mustExist), file)
    
      override fun sink(
        file: Path,
        mustCreate: Boolean,
      ): Sink = FaultySink(super.sink(file, mustCreate), file)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            journalWriter = newJournalWriter()
          }
        }
      }
    
      @Throws(FileNotFoundException::class)
      private fun newJournalWriter(): BufferedSink {
        val fileSink = fileSystem.appendingSink(journalFile)
        val faultHidingSink =
          FaultHidingSink(fileSink) {
            ******@****.***ThreadHoldsLock()
            hasJournalErrors = true
          }
        return faultHidingSink.buffer()
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

          "metadataOrNull:/cache",
          "sink:/cache/journal.tmp",
          "metadataOrNull:/cache/journal",
          "atomicMove:/cache/journal.tmp",
          "atomicMove:/cache/journal",
          "appendingSink:/cache/journal",
        )
        events.clear()
        c.size()
        assertThat(events).isEmpty()
      }
    
      private fun assertFullyCached(response: MockResponse) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top