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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LineEndingConversion.EOLType
Supported line ending types for conversion
-
Constructor Summary
Constructors Constructor Description LineEndingConversion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
convertEOL(String input, LineEndingConversion.EOLType type)
Convert line endings of a string to the given type.
-
-
-
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.
-
-