Apache.NMS.ActiveMQ.Commands.ActiveMQBytesMessage.ReadChar C# (CSharp) Method

ReadChar() public method

public ReadChar ( ) : char
return char
        public char ReadChar()
        {
            InitializeReading();
            try
            {
                return dataIn.ReadChar();
            }
            catch(EndOfStreamException e)
            {
                throw NMSExceptionSupport.CreateMessageEOFException(e);
            }
            catch(IOException e)
            {
                throw NMSExceptionSupport.CreateMessageFormatException(e);
            }
        }

Usage Example

	    public void TestReadChar() {
	        ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
            msg.WriteChar('a');
            msg.Reset();
            Assert.IsTrue(msg.ReadChar() == 'a');
	    }
All Usage Examples Of Apache.NMS.ActiveMQ.Commands.ActiveMQBytesMessage::ReadChar