public class Codec
extends java.lang.Object
s
, encode(s)
is a string that does not contain \r
or \n characters and s.equals(decode(encode(s)))
holds.Modifier and Type | Method and Description |
---|---|
static @NotNull java.lang.String |
decode(@NotNull java.lang.String str)
Decode a string which was encoded by
encode(String) . |
static @NotNull java.lang.String |
encode(@NotNull java.lang.String str)
Encode a string to make it fit into one line.
|
@NotNull public static @NotNull java.lang.String encode(@NotNull @NotNull java.lang.String str)
str
- the string to be encodeddecode(String)
@NotNull public static @NotNull java.lang.String decode(@NotNull @NotNull java.lang.String str)
encode(String)
.str
- the string to be decodedencode(String)