public class Codec
extends java.lang.Object
s
, encode(s)
is a string that does not contain \r
or \n and s.equals(decode(encode(s)))
holds.Modifier and Type | Method and Description |
---|---|
static @NotNull java.lang.String |
decode(@NotNull java.lang.String str)
Decodes a string which was encoded by
encode(String) . |
static @NotNull java.lang.String |
encode(@NotNull java.lang.String str)
Encodes 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)