com.h3c.util.snmp.command

## Interface Codec<E,C>

- Type Parameters:
    `E` - Type of the element to encode.
    `C` - Type of the coding format.
  All Superinterfaces:
    Decoder<E,C>
  All Known Implementing Classes:
    SnmpAbstractCodec

      public interface Codec<E,C>
      extends Decoder<E,C>

  A Codec is a device or computer program capable of encoding and/or decoding a digital data stream or signal.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `C` | `encode(E entity)` Encodes the given entity.

    - ### Methods inherited from interface com.h3c.util.snmp.command.Decoder

      `decode`

- - ### Method Detail

    - #### encode

          C encode(E entity)
                   throws IllegalArgumentException

      Encodes the given entity.
      Parameters:
        `entity` - Entity to encode.
      Returns:
        The code for `entity`.
      Throws:
        `IllegalArgumentException` - IllegalArgumentException If `entity` is not recognized and cannot be encoded.

Copyright © 2014. All Rights Reserved.