Documentation of 'org.apache.commons.compress.MemoryLimitException' Java class
MemoryLimitException
org.apache.commons.compress

Class MemoryLimitException

  • All Implemented Interfaces:
    java.io.Serializable


    public class MemoryLimitException
    extends java.io.IOException
    If a stream checks for estimated memory allocation, and the estimate goes above the memory limit, this is thrown. This can also be thrown if a stream tries to allocate a byte array that is larger than the allowable limit.
    Since:
    1.14
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      MemoryLimitException(long memoryNeededInKb, int memoryLimitInKb) 
      MemoryLimitException(long memoryNeededInKb, int memoryLimitInKb, java.lang.Exception e) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getMemoryLimitInKb() 
      long getMemoryNeededInKb() 
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MemoryLimitException

        public MemoryLimitException(long memoryNeededInKb,
                                    int memoryLimitInKb)
      • MemoryLimitException

        public MemoryLimitException(long memoryNeededInKb,
                                    int memoryLimitInKb,
                                    java.lang.Exception e)
    • Method Detail

      • getMemoryNeededInKb

        public long getMemoryNeededInKb()
      • getMemoryLimitInKb

        public int getMemoryLimitInKb()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.