Package net.sf.basedb.util.encode
Class ToSpaceEncoderDecoder
java.lang.Object
net.sf.basedb.util.encode.ToSpaceEncoderDecoder
- All Implemented Interfaces:
EncoderDecoder
Encoder implementation that replaces newline, carriage return,
tab and backslash with a space. This encoder is suitable for use with
tab-separated text files. This encoder is non-symmetrical and the
decode(String)
method simply returns the argument unmodified.- Since:
- 2.15
- Author:
- Nicklas
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ToSpaceEncoderDecoder
public ToSpaceEncoderDecoder()
-
-
Method Details
-
isSymmetrical
public boolean isSymmetrical()- Specified by:
isSymmetrical
in interfaceEncoderDecoder
- Returns:
- TRUE if the encoder is symmetrical, FALSE if not
-
decode
- Specified by:
decode
in interfaceEncoderDecoder
- Parameters:
s
- The string to decode- Returns:
- The decoded string
-
encode
- Specified by:
encode
in interfaceEncoderDecoder
- Parameters:
s
- The string to encode- Returns:
- The encoded string
-