Package hudson.util

Class LineEndingConversion

java.lang.Object
hudson.util.LineEndingConversion

public class LineEndingConversion extends Object
Converts line endings of a string.
Since:
1.582
Author:
David Ruhmann
  • Constructor Details

    • LineEndingConversion

      public LineEndingConversion()
  • Method Details

    • convertEOL

      public static String convertEOL(String input, LineEndingConversion.EOLType type)
      Convert line endings of a string to the given type. Default to Unix type.
      Parameters:
      input - The string containing line endings to be converted.
      type - Type of line endings to convert the string into.
      Returns:
      String updated with the new line endings or null if given null.