Class Integer32IgnoreTooManyBytes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<org.snmp4j.smi.Variable>, org.snmp4j.asn1.BERSerializable, org.snmp4j.smi.AssignableFromInteger, org.snmp4j.smi.AssignableFromString, org.snmp4j.smi.Variable

    public class Integer32IgnoreTooManyBytes
    extends org.snmp4j.smi.Integer32
    implements org.snmp4j.smi.AssignableFromInteger, org.snmp4j.smi.AssignableFromString
    This is special version of the original library that avoid exceptions to deal with a broken Net-SNMP agent. For more details check: http://issues.opennms.org/browse/NMS-5747
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.snmp4j.smi.AbstractVariable

        SMISYNTAXES_PROPERTIES
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      void decodeBER​(org.snmp4j.asn1.BERInputStream inputStream)  
      • Methods inherited from class org.snmp4j.smi.Integer32

        compareTo, encodeBER, equals, fromSubIndex, getBERLength, getSyntax, getValue, hashCode, setValue, setValue, toInt, toLong, toString, toSubIndex
      • Methods inherited from class org.snmp4j.smi.AbstractVariable

        createFromBER, createFromSyntax, equal, getBERPayloadLength, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.snmp4j.smi.AssignableFromInteger

        setValue, toInt
      • Methods inherited from interface org.snmp4j.smi.AssignableFromString

        setValue
    • Constructor Detail

      • Integer32IgnoreTooManyBytes

        public Integer32IgnoreTooManyBytes()
        Creates an Integer32 with a zero value.
      • Integer32IgnoreTooManyBytes

        public Integer32IgnoreTooManyBytes​(int value)
        Creates an Integer32 variable with the supplied value.
        Parameters:
        value - an integer value.
    • Method Detail

      • decodeBER

        public void decodeBER​(org.snmp4j.asn1.BERInputStream inputStream)
                       throws java.io.IOException
        Specified by:
        decodeBER in interface org.snmp4j.asn1.BERSerializable
        Overrides:
        decodeBER in class org.snmp4j.smi.Integer32
        Throws:
        java.io.IOException
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface org.snmp4j.smi.Variable
        Overrides:
        clone in class org.snmp4j.smi.Integer32