Package hudson.util

Class LineEndingConversion


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

      • LineEndingConversion

        public LineEndingConversion()
    • Method Detail

      • 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.