Package hudson.util
Class LineEndingConversion
java.lang.Object
hudson.util.LineEndingConversion
Converts line endings of a string.
- Since:
- 1.582
- Author:
- David Ruhmann
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Supported line ending types for conversion -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertEOL
(String input, LineEndingConversion.EOLType type) Convert line endings of a string to the given type.
-
Constructor Details
-
LineEndingConversion
public LineEndingConversion()
-
-
Method Details
-
convertEOL
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.
-