Back to Exoplayer

ExtractorAsserts.SimulationConfig (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/ExtractorAsserts.SimulationConfig.html

latest2.5 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class ExtractorAsserts.SimulationConfig


public static classExtractorAsserts.SimulationConfigextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

A config of different environments to simulate and extractor behaviours to test.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | boolean | simulateIOErrors | Whether to simulate IO errors. | | boolean | simulatePartialReads | Whether to simulate partial reads. | | boolean | simulateUnknownLength | Whether to simulate unknown input length. | | boolean | sniffFirst | Whether to sniff the data by calling Extractor.sniff(ExtractorInput) prior to consuming it. |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | String | toString() | |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

sniffFirst

public final boolean sniffFirst

Whether to sniff the data by calling Extractor.sniff(ExtractorInput) prior to consuming it.

- 

simulateIOErrors

public final boolean simulateIOErrors

Whether to simulate IO errors.

- 

simulateUnknownLength

public final boolean simulateUnknownLength

Whether to simulate unknown input length.

- 

simulatePartialReads

public final boolean simulatePartialReads

Whether to simulate partial reads.

Method Detail

- 

toString

public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()

Overrides:toString in class Object