DecoderInputBuffer.InsufficientCapacityException


public final class DecoderInputBuffer.InsufficientCapacityException extends IllegalStateException


Thrown when an attempt is made to write into a DecoderInputBuffer whose bufferReplacementMode is BUFFER_REPLACEMENT_MODE_DISABLED and who data capacity is smaller than required.

Summary

Public fields

final int

The current capacity of the buffer.

final int

The required capacity of the buffer.

Public constructors

InsufficientCapacityException(
    int currentCapacity,
    int requiredCapacity
)

Creates an instance.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

currentCapacity

public final int currentCapacity

The current capacity of the buffer.

requiredCapacity

public final int requiredCapacity

The required capacity of the buffer.

Public constructors

InsufficientCapacityException

public InsufficientCapacityException(
    int currentCapacity,
    int requiredCapacity
)

Creates an instance.

Parameters
int currentCapacity

The current capacity of the buffer.

int requiredCapacity

The required capacity of the buffer.