public byte ReadByte()
{
InitializeReading();
try
{
return dataIn.ReadByte();
}
catch(EndOfStreamException e)
{
throw NMSExceptionSupport.CreateMessageEOFException(e);
}
catch(IOException e)
{
throw NMSExceptionSupport.CreateMessageFormatException(e);
}
}
public void TestReadByte() { ActiveMQBytesMessage msg = new ActiveMQBytesMessage(); msg.WriteByte( (byte)2 ); msg.Reset(); Assert.IsTrue( msg.ReadByte() == 2 ); }