public class TabCrLfEncoderDecoder extends Object implements EncoderDecoder
Modifier and Type | Field and Description |
---|---|
private boolean |
nullIsEmptyString |
Constructor and Description |
---|
TabCrLfEncoderDecoder(boolean nullIsEmptyString)
Creates a new encoder/decoder.
|
public TabCrLfEncoderDecoder(boolean nullIsEmptyString)
nullIsEmptyString
- TRUE to encode null as empty string,
FALSE to not encode null. NOTE! If TRUE, this encoder is no
longer symmetricalpublic boolean isSymmetrical()
isSymmetrical
in interface EncoderDecoder
public String decode(String s)
decode
in interface EncoderDecoder
s
- The string to decodepublic String encode(String s)
encode
in interface EncoderDecoder
s
- The string to encode