466467468469470471472473474475476
public int readBytes(final byte[] value) throws JMSException { if (bodyWriteOnly) { throw new MessageNotReadableException("The message body is writeonly"); } try { Object myObj = content.get(position); if (myObj == null)
529530531532533534535536537538539
public Object readObject() throws JMSException { if (bodyWriteOnly) { throw new MessageNotReadableException("The message body is writeonly"); } try { Object value = content.get(position); position++;
979980981982983984985986
protected void checkRead() throws JMSException { if (!readOnly) { throw new MessageNotReadableException("Message is write-only"); } }
11181119112011211122112311241125
protected void checkReadable() throws MessageNotReadableException { if (!isReadOnly()) { throw new MessageNotReadableException("You need to call reset() to make the message readable"); } }
11201121112211231124112511261127
} } protected void checkWriteOnlyBody() throws MessageNotReadableException { if (!readOnlyBody) { throw new MessageNotReadableException("Message body is write-only"); } }
495051525354555657
} public boolean readBoolean() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); return ((StreamMessage)message).readBoolean(); }
575859606162636465
} public byte readByte() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); return ((StreamMessage)message).readByte(); }
656667686970717273
} public int readBytes(byte[] value) throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); return ((StreamMessage)message).readBytes(value); }
737475767778798081
} public char readChar() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); return ((StreamMessage)message).readChar(); }
818283848586878889
} public double readDouble() throws JMSException { if (!bodyReadOnly) throw new MessageNotReadableException("The message body is writeonly"); return ((StreamMessage)message).readDouble(); }