Package com.dianping.cat.message.spi.codec.PlainTextMessageCodec

Examples of com.dianping.cat.message.spi.codec.PlainTextMessageCodec.Context


public class PlainTextMessageCodecTest {
  private void check(Message message, String expected) {
    PlainTextMessageCodec codec = new PlainTextMessageCodec();
    ChannelBuffer buf = ChannelBuffers.dynamicBuffer();
    Context ctx = new Context().setBuffer(buf);

    codec.setBufferWriter(new EscapingBufferWriter());
    codec.encodeMessage(message, buf);

    String actual = buf.toString(Charset.forName("utf-8"));
View Full Code Here

TOP

Related Classes of com.dianping.cat.message.spi.codec.PlainTextMessageCodec.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.