Interface SnmpSyntax

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int decodeASN​(byte[] buf, int offset, AsnEncoder encoder)
      Decodes the ASN.1 buffer and sets the values in the SnmpSyntax object.
      SnmpSyntax duplicate()
      Creates a duplicate (in memory) object of the caller.
      int encodeASN​(byte[] buf, int offset, AsnEncoder encoder)
      Encodes the data object in the specified buffer using the AsnEncoder object
      byte typeId()
      Returns the ASN.1 type of the implementor object.
    • Method Detail

      • typeId

        byte typeId()
        Returns the ASN.1 type of the implementor object.
      • encodeASN

        int encodeASN​(byte[] buf,
                      int offset,
                      AsnEncoder encoder)
               throws AsnEncodingException
        Encodes the data object in the specified buffer using the AsnEncoder object
        Parameters:
        buf - The buffer to write the encoded information
        offset - The location to start writing the encoded data
        encoder - The object used to encode the data
        Returns:
        Returns the offset in buf to the byte immedantly after the last encode byte for the SnmpSyntax file
        Throws:
        AsnEncodingException - Thrown if an encoding error occurs
      • decodeASN

        int decodeASN​(byte[] buf,
                      int offset,
                      AsnEncoder encoder)
               throws AsnDecodingException
        Decodes the ASN.1 buffer and sets the values in the SnmpSyntax object.
        Parameters:
        buf - The encoded data buffer
        offset - The offset of the first valid byte
        encoder - The object used to decode the ASN.1 data
        Returns:
        Returns the index to the byte of data immedantly after the last byte of encoded data.
        Throws:
        AsnDecodingException - Thrown if an encoding error occurs
      • duplicate

        SnmpSyntax duplicate()
        Creates a duplicate (in memory) object of the caller. Similar to the clone() method.