public short readShort() throws JMSException { return ((BytesMessage) message).readShort(); }
@Override public short readShort() throws JMSException { return message.readShort(); }
public short readShort() throws JMSException { return ((BytesMessage) message).readShort(); }
/** * Read * @return The value * @exception JMSException Thrown if an error occurs */ public short readShort() throws JMSException { if (_log.isTraceEnabled()) { _log.trace("readShort()"); } return ((BytesMessage)_message).readShort(); }
/** * Read * * @return The value * @throws JMSException Thrown if an error occurs */ @Override public short readShort() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("readShort()"); } return ((BytesMessage) message).readShort(); }
/** * Read * * @return The value * @throws JMSException Thrown if an error occurs */ @Override public short readShort() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("readShort()"); } return ((BytesMessage) message).readShort(); }
values[i] = Byte.valueOf(message.readByte()); } else if (short.class.equals(parameterType)) { // NOPMD values[i] = message.readShort(); } else if (Short.class.equals(parameterType)) { values[i] = Short.valueOf(message.readShort()); } else if (int.class.equals(parameterType)) { values[i] = message.readInt();
values[i] = Byte.valueOf(message.readByte()); } else if (short.class.equals(parameterType)) { // NOPMD values[i] = message.readShort(); } else if (Short.class.equals(parameterType)) { values[i] = Short.valueOf(message.readShort()); } else if (int.class.equals(parameterType)) { values[i] = message.readInt();
return shortMessage.readShort(); default: throw new UnsupportedOperationException("Unsupported message type: " + message);
@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()); assertEquals("hellobytes", bytesMessage.readUTF());
m.readShort(); ProxyAssertSupport.fail(); } catch (javax.jms.MessageNotReadableException e) { ProxyAssertSupport.assertEquals(myShort, m2.readShort()); ProxyAssertSupport.assertEquals(myChar, m2.readChar()); ProxyAssertSupport.assertEquals(myInt, m2.readInt()); ProxyAssertSupport.assertEquals(myShort, m2.readShort()); ProxyAssertSupport.assertEquals(myInt, m2.readInt()); ProxyAssertSupport.assertEquals(myLong, m2.readLong()); m2.readShort(); ProxyAssertSupport.fail(); } catch (MessageEOFException e) {