|
Crossfire JXClient, Trunk
R20561
|
Utility class to encode arbitrary Strings to fit in a single text line. More...
Collaboration diagram for com.realtime.crossfire.jxclient.util.Codec:Static Public Member Functions | |
| static String | decode (@NotNull final String str) |
| Decodes a string which was encoded by encode(String). More... | |
| static String | encode (@NotNull final String str) |
| Encodes a string to make it fit into one line. More... | |
Private Member Functions | |
| Codec () | |
| Private constructor to prevent instantiation. More... | |
Static Private Attributes | |
| static final Pattern [] | PATTERNS_DECODE |
| Patterns that must be decoded. More... | |
| static final Pattern [] | PATTERNS_ENCODE |
| Patterns that must be encoded. More... | |
| static final String [] | REPLACEMENTS_DECODE |
| The replacement strings for PATTERNS_DECODE. More... | |
| static final String [] | REPLACEMENTS_ENCODE |
| The replacement strings for PATTERNS_ENCODE. More... | |
Utility class to encode arbitrary Strings to fit in a single text line.
For any string
,
is a string that does not contain or
and s.equals(decode(encode(s))) holds.
Definition at line 35 of file Codec.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 82 of file Codec.java.
|
static |
Decodes a string which was encoded by encode(String).
| str | the string to be decoded |
Definition at line 108 of file Codec.java.
Referenced by com.realtime.crossfire.jxclient.settings.Settings.loadValues().
Here is the caller graph for this function:
|
static |
Encodes a string to make it fit into one line.
| str | the string to be encoded |
Definition at line 92 of file Codec.java.
Referenced by com.realtime.crossfire.jxclient.settings.Settings.saveNode().
Here is the caller graph for this function:
|
staticprivate |
Patterns that must be decoded.
The corresponding replacement strings are REPLACEMENTS_DECODE.
Definition at line 63 of file Codec.java.
|
staticprivate |
Patterns that must be encoded.
The corresponding replacement strings are REPLACEMENTS_ENCODE.
Definition at line 42 of file Codec.java.
|
staticprivate |
The replacement strings for PATTERNS_DECODE.
Definition at line 73 of file Codec.java.
|
staticprivate |
The replacement strings for PATTERNS_ENCODE.
Definition at line 52 of file Codec.java.