예제 #1
0
        public override String ToString()
        {
            PlainTextMessageCodec codec = new PlainTextMessageCodec();
            ChannelBuffer         buf   = new ChannelBuffer(8192);

            codec.EncodeMessage(this, buf);
            buf.Reset();

            return(buf.ToString());
        }
예제 #2
0
        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());
        }
예제 #3
0
        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("");
            }
        }
예제 #4
0
 public override string ToString(Charset charset)
 {
     return(_buffer.ToString(charset));
 }
예제 #5
0
        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 "";
            }
        }