Google is committed to advancing racial equity for Black communities. See how.

SnapshotInputStreamSource

public class SnapshotInputStreamSource
extends Object implements InputStreamSource

java.lang.Object
   ↳ com.android.tradefed.result.SnapshotInputStreamSource


A File-backed InputStreamSource. Creates a snapshot of original ERROR(/InputStream) contents to ensure that createInputStream() will return identically-behaving ERROR(/InputStream)s as required.

Summary

Public constructors

SnapshotInputStreamSource(String name, InputStream stream)

Constructor for a file-backed InputStreamSource

Public methods

void close()

InputStream createInputStream()

long size()

Public constructors

SnapshotInputStreamSource

public SnapshotInputStreamSource (String name, 
                InputStream stream)

Constructor for a file-backed InputStreamSource

Parameters
name String

stream InputStream

Public methods

close

public void close ()

createInputStream

public InputStream createInputStream ()

Returns
InputStream

size

public long size ()

Returns
long