Top Description Fields Constructors Methods
org.tukaani.xz

public Class MemoryLimitException

extends XZIOException
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
private final int
private final int
private static final long

Constructor Summary

AccessConstructor and Description
public
MemoryLimitException(int
amount of memory needed as kibibytes (KiB)
memoryNeeded
,
int
specified memory usage limit as kibibytes (KiB)
memoryLimit
)

Creates a new MemoryLimitException.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

memory usage limit as kibibytes (KiB)
getMemoryLimit
()

Gets what the memory usage limit was at the time the exception was created.

public int

Returns:

amount of memory needed as kibibytes (KiB)
getMemoryNeeded
()

Gets how much memory is required to decompress the data.

Field Detail

memoryLimitback to summary
private final int memoryLimit
memoryNeededback to summary
private final int memoryNeeded
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.tukaani.xz.XZIOException.serialVersionUID.

Constructor Detail

MemoryLimitExceptionback to summary
public MemoryLimitException(int memoryNeeded, int memoryLimit)

Creates a new MemoryLimitException.

The amount of memory needed and the memory usage limit are included in the error detail message.

Parameters
memoryNeeded:int

amount of memory needed as kibibytes (KiB)

memoryLimit:int

specified memory usage limit as kibibytes (KiB)

Method Detail

getMemoryLimitback to summary
public int getMemoryLimit()

Gets what the memory usage limit was at the time the exception was created.

Returns:int

memory usage limit as kibibytes (KiB)

getMemoryNeededback to summary
public int getMemoryNeeded()

Gets how much memory is required to decompress the data.

Returns:int

amount of memory needed as kibibytes (KiB)