Method Summary |
|
public static String | decode(String encoding, String toDecode) This function will decode a given string to it's decoded variant.
See Also: Encode.encode Parameters: encoding - a string that describes which decoding should be used. Parameters: toDecode - a string which is the value which should be encoded. |
public String | decode(String toDecode) This function will decode a given string to it's decoded variant
Parameters: toDecode - a string which is the value which should be encoded. |
public static byte[] | decodeBytes(String encoding, String toDecode) |
public byte[] | decodeBytes(String toDecode) |
public static String | encode(String encoding, String toEncode) This function will encode a given string to it's encoded
variant. |
public static String | encode(String encoding, byte[] bytes) |
public String | encode(String toEncode) This function will encode a given string to it's encoded variant.
Parameters: toEncode - A string which is the value which should be encoded.If the transformer does transform bytes, then first getBytes is done on the String. |
public String | encode(byte[] bytes) Encodes a byte array. |
public String | getEncoding() |
public Transformer | getTransformer() |
public boolean | isByteToCharEncoder() Checks if the transformations makes from byte[] String. |
public boolean | isCharEncoder() Checks if the transformation is between two Strings. |
public static boolean | isEncoding(String e) Checks if a certain string represents a known transformation. |
public static void | main(String[] argv) Invocation of the class from the commandline for testing. |
public static Set<String> | possibleEncodings() All the currently known encodings. |
public static void | register(String clazz) Add new transformation types. |