-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class RumResourceInputStream extends InputStream
An InputStream wrapper that will report the stream read as a RUM Resource.
-
-
Field Summary
Fields Modifier and Type Field Description private final InputStreamdelegateprivate final Stringurl
-
Constructor Summary
Constructors Constructor Description RumResourceInputStream(InputStream delegate, String url)
-
Method Summary
Modifier and Type Method Description final InputStreamgetDelegate()final StringgetUrl()Integerread()Integerread(ByteArray b)Integerread(ByteArray b, Integer off, Integer len)Integeravailable()Longskip(Long n)BooleanmarkSupported()Unitmark(Integer readlimit)Unitreset()Unitclose()-
-
Constructor Detail
-
RumResourceInputStream
RumResourceInputStream(InputStream delegate, String url)
- Parameters:
delegate- the actual InputStream to wrapurl- the URL associated with the underlying resource, as you want it displayed in Datadog
-
-
Method Detail
-
getDelegate
final InputStream getDelegate()
-
markSupported
Boolean markSupported()
-
-
-
-