Class EscapeUtils

  • public abstract class EscapeUtils
    extends java.lang.Object
    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

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escapeLineBreak​(@Nullable java.lang.String line)  
      static java.lang.String unescapeLineBreaks​(@Nullable java.lang.String line)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EscapeUtils

        public EscapeUtils()
    • Method Detail

      • escapeLineBreak

        public static java.lang.String escapeLineBreak​(@Nullable
                                                       @Nullable java.lang.String line)
      • unescapeLineBreaks

        public static java.lang.String unescapeLineBreaks​(@Nullable
                                                          @Nullable java.lang.String line)