- 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 LineSeparator
DEFAULT
The default line separator in the current system.static LineSeparator
UNIX
The Unix line separator(LF)static LineSeparator
WINDOWS
The Windows line separator(CRLF)
-
Constructor Summary
Constructors Constructor Description LineSeparator(String lineSeparator)
CreateLineSeparator
with the specifiedlineSeparator
string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
toString()
Return a hex dump of the line separator in UTF-8 encoding.String
value()
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)
CreateLineSeparator
with the specifiedlineSeparator
string.
-
-
Method Detail
-
value
public String value()
Return the string value of this line separator.
-
-