Class EscapeUtils
java.lang.Object
org.apache.jackrabbit.oak.commons.sort.EscapeUtils
Utility class to escape '\n', '\r', '\' char
while being written to file and unescape then upon getting
read from file. This is used by StringSort and ExternalSort
to handle data which contains line break. If left unescaped
then such data interferes with the processing of such utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeLineBreak
(@Nullable String line) static String
unescapeLineBreaks
(@Nullable String line)
-
Constructor Details
-
EscapeUtils
public EscapeUtils()
-
-
Method Details
-
escapeLineBreak
-
unescapeLineBreaks
-