docs/doc/reference/com/google/android/exoplayer2/decoder/DecoderInputBuffer.InsufficientCapacityException.html
Package com.google.android.exoplayer2.decoder
All Implemented Interfaces:SerializableEnclosing class:DecoderInputBuffer
public static final classDecoderInputBuffer.InsufficientCapacityExceptionextends[IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html "class or interface in java.lang")
Thrown when an attempt is made to write into a DecoderInputBuffer whose DecoderInputBuffer.bufferReplacementMode is DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED and who DecoderInputBuffer.data capacity is smaller than required.
See Also:Serialized Form
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | currentCapacity |
The current capacity of the buffer.
|
| int | requiredCapacity |
The required capacity of the buffer.
|
Constructors | Constructor | Description |
| --- | --- |
| InsufficientCapacityException(int currentCapacity, int requiredCapacity) |
Creates an instance.
|
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final int currentCapacity
The current capacity of the buffer.
-
public final int requiredCapacity
The required capacity of the buffer.
-
public InsufficientCapacityException(int currentCapacity,
int requiredCapacity)
Creates an instance.
Parameters:currentCapacity - The current capacity of the buffer.requiredCapacity - The required capacity of the buffer.