org.apache.commons.configuration2

## Interface ConfigurationDecoder

-     public interface ConfigurationDecoder

  An interface for decoding encoded values from a configuration source.

  Using this interface it is possible to store encoded or encrypted values in a configuration file. An implementing object can be assigned to a configuration object. The `getEncodedString()` method of the `ImmutableConfiguration` interface makes use of this instance to decode the value read from the configuration file before it is passed to the caller.

  By providing custom implementations of this interface an application can add support for different kinds of encoded strings in configuration files.

  Since:
    2.0
  Version:
    $Id: ConfigurationDecoder.java 1638392 2014-11-11 20:56:09Z oheger $

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `decode(String s)` Decodes the specified string.

- - ### Method Detail

    - #### decode

          String decode(String s)

      Decodes the specified string. This method is called with a string in encoded form read from a configuration file. An implementation has to be perform an appropriate decoding and return the result. This result is passed to the calling application; so it should be in a readable form.
      Parameters:
        `s` - the string to be decoded (not null)
      Returns:
        the decoded string

Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.