com.h3c.util.codec

## Interface EntropicStringCodec

- All Superinterfaces:
    StringCodec
  All Known Implementing Classes:
    ClassNameCodec, EntropicStringSetCodec

      public interface EntropicStringCodec
      extends StringCodec

  This interface extends `StringCodec`, defining methods for adding new string encodings after construction.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(String original)` This method adds another original string to the codec.
    `void` | `addAll(Set<String> originals)` This method adds more original (unencoded) strings to the codec.

    - ### Methods inherited from interface com.h3c.util.codec.StringCodec

      `decode, encode, size`

- - ### Method Detail

    - #### add

          void add(String original)

      This method adds another original string to the codec. The implementation will assign a unique encoded form for the string and add it to its internal map.
      Parameters:
        `original` - an original (unencoded) string
      Throws:
        `NullPointerException` - if the parameter is null

    - #### addAll

          void addAll(Set<String> originals)

      This method adds more original (unencoded) strings to the codec. The implementation will assign a unique encoded form for each string and add them to its internal map.
      Parameters:
        `originals` - an original (unencoded) string
      Throws:
        `NullPointerException` - if the parameter is null, or any element of the set is null

Copyright © 2014. All Rights Reserved.