public final class LineSeparator extends Object
Modifier and Type | Field and 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 and Description |
---|
LineSeparator(String lineSeparator)
Create
LineSeparator with the specified lineSeparator string. |
Modifier and Type | Method and 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.
|
public static final LineSeparator DEFAULT
public static final LineSeparator UNIX
public static final LineSeparator WINDOWS
public LineSeparator(String lineSeparator)
LineSeparator
with the specified lineSeparator
string.public String value()
Copyright © 2008–2019 The Netty Project. All rights reserved.