# ChunkHolder

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/source/chunk/ChunkHolder.java+class:androidx.media3.exoplayer.source.chunk.ChunkHolder)

*** ** * ** ***


```
@UnstableApi
public final class ChunkHolder
```

<br />

*** ** * ** ***

Holds a chunk or an indication that the end of the stream has been reached.

## Summary

| ### Public fields |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/Chunk` | `https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/ChunkHolder#chunk()` The chunk. |
| `boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/ChunkHolder#endOfStream()` Indicates that the end of the stream has been reached. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/ChunkHolder#ChunkHolder()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/ChunkHolder#clear()()` Clears the holder. |

## Public fields

### chunk

```
public @Nullable Chunk chunk
```

The chunk.

### endOfStream

```
public boolean endOfStream
```

Indicates that the end of the stream has been reached.

## Public constructors

### ChunkHolder

```
public ChunkHolder()
```

## Public methods

### clear

```
public void clear()
```

Clears the holder.