Serializablepublic class MemoryLimitException extends XZIOException
The amount of memory required and the memory usage limit are included in the error detail message in human readable format.
| Constructor | Description |
|---|---|
MemoryLimitException(int memoryNeeded,
int memoryLimit) |
Creates a new MemoryLimitException.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getMemoryLimit() |
Gets what the memory usage limit was at the time the exception
was created.
|
int |
getMemoryNeeded() |
Gets how much memory is required to decompress the data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MemoryLimitException(int memoryNeeded,
int memoryLimit)
The amount of memory needed and the memory usage limit are included in the error detail message.
memoryNeeded - amount of memory needed as kibibytes (KiB)memoryLimit - specified memory usage limit as kibibytes (KiB)public int getMemoryNeeded()
public int getMemoryLimit()