com.realtime.crossfire.jxclient.settings.Codec Class Reference

Collaboration diagram for com.realtime.crossfire.jxclient.settings.Codec:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static String encode (@NotNull final String str)
static String decode (@NotNull final String str)

Detailed Description

Utility class to encode arbitrary Strings to fit in a single text line. For any string s, encode(s) is a string that does not contain or
characters and s.equals(decode(encode(s))) holds.

Author:
Andreas Kirschbaum

Definition at line 35 of file Codec.java.


Member Function Documentation

static String com.realtime.crossfire.jxclient.settings.Codec.decode ( @NotNull final String  str  )  [static]

Decodes a string which was encoded by encode(String).

Parameters:
str the string to be decoded
Returns:
the decoded string
See also:
encode(String)

Definition at line 108 of file Codec.java.

static String com.realtime.crossfire.jxclient.settings.Codec.encode ( @NotNull final String  str  )  [static]

Encodes a string to make it fit into one line.

Parameters:
str the string to be encoded
Returns:
the encoded string
See also:
decode(String)

Definition at line 92 of file Codec.java.


The documentation for this class was generated from the following file:
Generated on Sun Nov 6 15:56:44 2011 for Crossfire JXClient, Trunk by  doxygen 1.6.3