com.pushtotest.testmaker.resources
Interface Codec

All Known Implementing Classes:
Base64Codec

public interface Codec

This class provides an interface for building encoding methods. Following the interface allows for the easy building of 'plugin' type methods.


Method Summary
 char[] decode(char[] chars)
          This method decodes the character array passed in and returns a decoded version of the character array.
 java.lang.String decode(java.lang.String chars)
          This method decodes the string passed in and returns a decoded version of the string.
 char[] encode(char[] chars)
          This method encodes the character array passed in and returns an encoded character array.
 java.lang.String encode(java.lang.String chars)
          This method encodes the string passed in and returns the encoded string.
 

Method Detail

encode

java.lang.String encode(java.lang.String chars)
This method encodes the string passed in and returns the encoded string.

Parameters:
chars - The plain text string that should be encode
Returns:
The encoded version of the string passed in.

encode

char[] encode(char[] chars)
This method encodes the character array passed in and returns an encoded character array.

Parameters:
chars - The plain text character array that should be encode
Returns:
The encoded version of the character array passed in.

decode

char[] decode(char[] chars)
This method decodes the character array passed in and returns a decoded version of the character array.

Parameters:
chars - The plain text character array that should be encode
Returns:
The encoded version of the character array passed in.

decode

java.lang.String decode(java.lang.String chars)
This method decodes the string passed in and returns a decoded version of the string.

Parameters:
chars - The plain text string that should be encode
Returns:
The encoded version of the string passed in.