com.h3c.util.codec

## Interface StringCodec

- All Known Subinterfaces:
    EntropicStringCodec
  All Known Implementing Classes:
    ClassNameCodec, EntropicStringSetCodec, StringSetCodec

      public interface StringCodec

  This interface defines methods for encoding and decoding strings to an alternate form.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `decode(String encoding)` This method takes an encoded string and returns the decoded original string.
    `String` | `encode(String original)` This method takes some original string and returns it encoded in a different form.
    `int` | `size()` Returns the number of mappings in the codec.

- - ### Method Detail

    - #### encode

          String encode(String original)

      This method takes some original string and returns it encoded in a different form.
      Parameters:
        `original` - the original string
      Returns:
        the encoded string

    - #### decode

          String decode(String encoding)

      This method takes an encoded string and returns the decoded original string.
      Parameters:
        `encoding` - the encoded string
      Returns:
        the original string

    - #### size

          int size()

      Returns the number of mappings in the codec.
      Returns:
        the number of mappings.

Copyright © 2014. All Rights Reserved.