public char readChar() throws JMSException { return ((BytesMessage) message).readChar(); }
@Override public char readChar() throws JMSException { return message.readChar(); }
public char readChar() throws JMSException { return ((BytesMessage) message).readChar(); }
/** * Read * @return The value * @exception JMSException Thrown if an error occurs */ public char readChar() throws JMSException { if (_log.isTraceEnabled()) { _log.trace("readChar()"); } return ((BytesMessage)_message).readChar(); }
/** * Read * * @return The value * @throws JMSException Thrown if an error occurs */ @Override public char readChar() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("readChar()"); } return ((BytesMessage) message).readChar(); }
/** * Read * * @return The value * @throws JMSException Thrown if an error occurs */ @Override public char readChar() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("readChar()"); } return ((BytesMessage) message).readChar(); }
return charMessage.readChar(); case DOUBLE: if (!(message instanceof BytesMessage)) {
@Override protected void assertEquivalent(final Message m, final int mode, final boolean redelivered) throws JMSException { super.assertEquivalent(m, mode, redelivered); BytesMessage bm = (BytesMessage) m; ProxyAssertSupport.assertEquals(true, bm.readBoolean()); ProxyAssertSupport.assertEquals((byte) 3, bm.readByte()); byte[] bytes = new byte[3]; bm.readBytes(bytes); ProxyAssertSupport.assertEquals((byte) 4, bytes[0]); ProxyAssertSupport.assertEquals((byte) 5, bytes[1]); ProxyAssertSupport.assertEquals((byte) 6, bytes[2]); ProxyAssertSupport.assertEquals((char) 7, bm.readChar()); ProxyAssertSupport.assertEquals(new Double(8.0), new Double(bm.readDouble())); ProxyAssertSupport.assertEquals(new Float(9.0), new Float(bm.readFloat())); ProxyAssertSupport.assertEquals(10, bm.readInt()); ProxyAssertSupport.assertEquals(11L, bm.readLong()); ProxyAssertSupport.assertEquals((short) 12, bm.readShort()); ProxyAssertSupport.assertEquals("this is an UTF String", bm.readUTF()); }
assertEquals('h', bytesMessage.readChar()); assertEquals(987, bytesMessage.readInt()); assertEquals((short) 1099, bytesMessage.readShort());
m.readChar(); ProxyAssertSupport.fail(); } catch (javax.jms.MessageNotReadableException e) { ProxyAssertSupport.assertEquals(myByte, m2.readByte()); ProxyAssertSupport.assertEquals(myShort, m2.readShort()); ProxyAssertSupport.assertEquals(myChar, m2.readChar()); ProxyAssertSupport.assertEquals(myInt, m2.readInt()); ProxyAssertSupport.assertEquals(myLong, m2.readLong()); m2.readChar(); ProxyAssertSupport.fail(); } catch (MessageEOFException e) {