public 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.
构造器和说明 |
---|
MemoryLimitException(int memoryNeeded,
int memoryLimit)
Creates a new MemoryLimitException.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
public 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()