Back to Exoplayer

FakeDataSet.FakeData.Segment (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/FakeDataSet.FakeData.Segment.html

latest2.5 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class FakeDataSet.FakeData.Segment


public static final classFakeDataSet.FakeData.Segmentextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

A segment of FakeDataSet.FakeData. May consist of an action or exception instead of actual data.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | Runnable | action | | | long | byteOffset | | | int | bytesRead | | | byte[] | data | | | IOException | exception | | | boolean | exceptionCleared | | | boolean | exceptionThrown | | | int | length | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | boolean | isActionSegment() | | | boolean | isErrorSegment() | |

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

exception

@Nullable
public final[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")exception
- 

data

@Nullable
public final byte[] data
- 

length

public final int length
- 

byteOffset

public final long byteOffset
- 

action

@Nullable
public final[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")action
- 

exceptionThrown

public boolean exceptionThrown
- 

exceptionCleared

public boolean exceptionCleared
- 

bytesRead

public int bytesRead

Method Detail

- 

isErrorSegment

public boolean isErrorSegment()
- 

isActionSegment

public boolean isActionSegment()