public override String ToString() { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.EncodeMessage(this, buf); buf.Reset(); return(buf.ToString()); }
public override string ToString() { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.Encode(this, buf); buf.Reset(); buf.Skip(4); // get rid of length return(buf.ToString()); }
public override String ToString() { try { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.EncodeMessage(this, buf); buf.Reset(); return(buf.ToString()); } catch (Exception ex) { Cat.lastException = ex; return(""); } }
public override string ToString(Charset charset) { return(_buffer.ToString(charset)); }
public override String ToString() { try { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.Encode(this, buf); buf.Reset(); buf.Skip(4); // get rid of length return buf.ToString(); } catch (Exception ex) { Cat.lastException = ex; return ""; } }