|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.tukaani.xz.XZIOException
org.tukaani.xz.MemoryLimitException
public class MemoryLimitException
Thrown when the memory usage limit given to the XZ decompressor would be exceeded.
The amount of memory required and the memory usage limit are included in the error detail message in human readable format.
Constructor Summary | |
---|---|
MemoryLimitException(int memoryNeeded,
int memoryLimit)
Creates a new MemoryLimitException. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)Method Detail |
---|
public int getMemoryNeeded()
public int getMemoryLimit()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |