public class StringEncoderHandler extends Object implements PipeHandler<String,ByteBuf>
String into a ByteBuf.
A typical setup for a text-based line protocol in a TCP/IP socket| 构造器和说明 |
|---|
StringEncoderHandler()
Creates a new instance with the current system character set.
|
StringEncoderHandler(Charset charset)
Creates a new instance with the specified character set.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PipeStatus |
onMessage(PipeContext context,
PipeRcvQueue<String> src,
PipeSndQueue<ByteBuf> dst) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonActive, onClose, onError, onInitpublic StringEncoderHandler()
public StringEncoderHandler(Charset charset)
public PipeStatus onMessage(PipeContext context, PipeRcvQueue<String> src, PipeSndQueue<ByteBuf> dst)
onMessage 在接口中 PipeHandler<String,ByteBuf>Copyright © 2022–2024. All rights reserved.