Skip to content

RumResourceInputStream

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

class RumResourceInputStream@JvmOverloadsconstructor(val delegate: InputStream, val url: String, val sdkCore: SdkCore = Datadog.getInstance()) : InputStream

An InputStream wrapper that will report the stream read as a RUM Resource.

Parameters

delegate the actual InputStream to wrap
url the URL associated with the underlying resource, as you want it displayed in Datadog
sdkCore the SdkCore instance to report resources to. If not provided, default instance will be used.

Constructors

RumResourceInputStream

@JvmOverloads

constructor(delegate: InputStream, url: String, sdkCore: SdkCore = Datadog.getInstance())

Parameters
delegate the actual InputStream to wrap
url the URL associated with the underlying resource, as you want it displayed in Datadog
sdkCore the SdkCore instance to report resources to. If not provided, default instance will be used.

Properties

delegate

val delegate: InputStream

Parameters
delegate the actual InputStream to wrap

sdkCore

val sdkCore: SdkCore

Parameters
sdkCore the SdkCore instance to report resources to. If not provided, default instance will be used.

url

val url: String

Parameters
url the URL associated with the underlying resource, as you want it displayed in Datadog

Functions

available

open override fun available(): Int

close

open override fun close()

mark

open override fun mark(readlimit: Int)

markSupported

open override fun markSupported(): Boolean

read

open override fun read(): Int

open override fun read(b: ByteArray): Int

open override fun read(b: ByteArray, off: Int, len: Int): Int

reset

open override fun reset()

skip

open override fun skip(n: Long): Long

Clone this wiki locally