Here you can find the source of standardizeLineEndings(String string)
public static String standardizeLineEndings(String string)
//package com.java2s; //License from project: Apache License public class Main { public static String standardizeLineEndings(String string) { if (string == null) { return null; }//w w w.j a va 2s.com return string.replace("\r\n", "\n").replace("\r", "\n"); } }