@Override public long getBodyLength() throws JMSException { checkRead(); return bodyLength; }
@Override public int readBytes(final byte[] value, final int length) throws JMSException { checkRead(); return bytesReadBytes(message.getBodyBuffer(), value, length); }
@Override public int readBytes(final byte[] value) throws JMSException { checkRead(); return bytesReadBytes(message.getBodyBuffer(), value); }
@Override public byte readByte() throws JMSException { checkRead(); try { return bytesReadByte(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public int readUnsignedByte() throws JMSException { checkRead(); try { return bytesReadUnsignedByte(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public int readUnsignedShort() throws JMSException { checkRead(); try { return bytesReadUnsignedShort(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public int readInt() throws JMSException { checkRead(); try { return bytesReadInt(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public boolean readBoolean() throws JMSException { checkRead(); try { return bytesReadBoolean(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public short readShort() throws JMSException { checkRead(); try { return bytesReadShort(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public char readChar() throws JMSException { checkRead(); try { return bytesReadChar(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public double readDouble() throws JMSException { checkRead(); try { return bytesReadDouble(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public long readLong() throws JMSException { checkRead(); try { return bytesReadLong(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public float readFloat() throws JMSException { checkRead(); try { return bytesReadFloat(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public String readUTF() throws JMSException { checkRead(); try { return bytesReadUTF(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } catch (Exception e) { JMSException je = new JMSException("Failed to get UTF"); je.setLinkedException(e); je.initCause(e); throw je; } }
@Override public int readBytes(final byte[] value) throws JMSException { checkRead(); return bytesReadBytes(message.getBodyBuffer(), value); }
@Override public int readBytes(final byte[] value, final int length) throws JMSException { checkRead(); return bytesReadBytes(message.getBodyBuffer(), value, length); }
@Override public int readUnsignedByte() throws JMSException { checkRead(); try { return bytesReadUnsignedByte(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public int readUnsignedShort() throws JMSException { checkRead(); try { return bytesReadUnsignedShort(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public double readDouble() throws JMSException { checkRead(); try { return bytesReadDouble(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public double readDouble() throws JMSException { checkRead(); try { return bytesReadDouble(message.getBodyBuffer()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }