main

square/leakcanary

Last updated at: 29/12/2023 09:40

StreamingSourceProvider.kt

TLDR

This file contains the definition of the StreamingSourceProvider interface, which is responsible for opening Source instances.

Methods

openStreamingSource

This method returns a BufferedSource instance.

END

package shark

import okio.BufferedSource
import okio.Source

/**
 * Can open [Source] instances.
 */
fun interface StreamingSourceProvider {
  fun openStreamingSource(): BufferedSource
}