- java.lang.Object
-
- io.netty5.handler.codec.string.LineSeparator
-
public final class LineSeparator extends Object
A class to represent line separators in different environments.
-
-
Field Summary
Fields Modifier and Type Field Description static LineSeparatorDEFAULTThe default line separator in the current system.static LineSeparatorUNIXThe Unix line separator(LF)static LineSeparatorWINDOWSThe Windows line separator(CRLF)
-
Constructor Summary
Constructors Constructor Description LineSeparator(String lineSeparator)CreateLineSeparatorwith the specifiedlineSeparatorstring.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()StringtoString()Return a hex dump of the line separator in UTF-8 encoding.Stringvalue()Return the string value of this line separator.
-
-
-
Field Detail
-
DEFAULT
public static final LineSeparator DEFAULT
The default line separator in the current system.
-
UNIX
public static final LineSeparator UNIX
The Unix line separator(LF)
-
WINDOWS
public static final LineSeparator WINDOWS
The Windows line separator(CRLF)
-
-
Constructor Detail
-
LineSeparator
public LineSeparator(String lineSeparator)
CreateLineSeparatorwith the specifiedlineSeparatorstring.
-
-
Method Detail
-
value
public String value()
Return the string value of this line separator.
-
-