public final class

DecoderInputBuffer.InsufficientCapacityException

extends java.lang.IllegalStateException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.lang.RuntimeException

↳java.lang.IllegalStateException

↳androidx.media3.decoder.DecoderInputBuffer.InsufficientCapacityException

Overview

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.

Summary

Fields
public final intcurrentCapacity

The current capacity of the buffer.

public final intrequiredCapacity

The required capacity of the buffer.

Constructors
publicInsufficientCapacityException(int currentCapacity, int requiredCapacity)

Creates an instance.

Methods
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public final int currentCapacity

The current capacity of the buffer.

public final int requiredCapacity

The required capacity of the buffer.

Constructors

public InsufficientCapacityException(int currentCapacity, int requiredCapacity)

Creates an instance.

Parameters:

currentCapacity: The current capacity of the buffer.
requiredCapacity: The required capacity of the buffer.