com.xiaoleilu.hutool.io.file.LineSeparator Maven / Gradle / Ivy
package com.xiaoleilu.hutool.io.file;
/**
* 换行符枚举
* 换行符包括:
*
* Mac系统换行符:"\r"
* Linux系统换行符:"\n"
* Windows系统换行符:"\r\n"
*
*
* @see #MAC
* @see #LINUX
* @see #WINDOWS
* @author Looly
* @since 3.1.0
*/
public enum LineSeparator {
/** Mac系统换行符:"\r" */
MAC("\r"),
/** Linux系统换行符:"\n" */
LINUX("\n"),
/** Windows系统换行符:"\r\n" */
WINDOWS("\r\n");
private String value;
private LineSeparator(String lineSeparator) {
this.value = lineSeparator;
}
public String getValue() {
return this.value;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy