Package io.netty.handler.codec.string
Class LineSeparator
- java.lang.Object
-
- io.netty.handler.codec.string.LineSeparator
-
public final class LineSeparator extends java.lang.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(java.lang.String lineSeparator)
CreateLineSeparator
with the specifiedlineSeparator
string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
Return a hex dump of the line separator in UTF-8 encoding.java.lang.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(java.lang.String lineSeparator)
CreateLineSeparator
with the specifiedlineSeparator
string.
-
-
Method Detail
-
value
public java.lang.String value()
Return the string value of this line separator.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Return a hex dump of the line separator in UTF-8 encoding.- Overrides:
toString
in classjava.lang.Object
-
-