docs/doc/reference/com/google/android/exoplayer2/testutil/FakeDataSet.FakeData.Segment.html
Package com.google.android.exoplayer2.testutil
Enclosing class:FakeDataSet.FakeData
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.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| Runnable | action | |
| long | byteOffset | |
| int | bytesRead | |
| byte[] | data | |
| IOException | exception | |
| boolean | exceptionCleared | |
| boolean | exceptionThrown | |
| int | length | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | isActionSegment() | |
| boolean | isErrorSegment() | |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
@Nullable
public final[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")exception
-
@Nullable
public final byte[] data
-
public final int length
-
public final long byteOffset
-
@Nullable
public final[Runnable](https://developer.android.com/reference/java/lang/Runnable.html "class or interface in java.lang")action
-
public boolean exceptionThrown
-
public boolean exceptionCleared
-
public int bytesRead
-
public boolean isErrorSegment()
-
public boolean isActionSegment()