程序包 | 说明 |
---|---|
io.netty.handler.codec.string |
Encoder and decoder which transform a
String into a
ByteBuf and vice versa. |
限定符和类型 | 字段和说明 |
---|---|
static LineSeparator |
LineSeparator.DEFAULT
The default line separator in the current system.
|
static LineSeparator |
LineSeparator.UNIX
The Unix line separator(LF)
|
static LineSeparator |
LineSeparator.WINDOWS
The Windows line separator(CRLF)
|
构造器和说明 |
---|
LineEncoder(LineSeparator lineSeparator)
Creates a new instance with the specified line separator and UTF-8 charset encoding.
|
LineEncoder(LineSeparator lineSeparator,
java.nio.charset.Charset charset)
Creates a new instance with the specified line separator and character set.
|