@Override public int readInt() throws JMSException { checkRead(); try { return streamReadInteger(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public boolean readBoolean() throws JMSException { checkRead(); try { return streamReadBoolean(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public char readChar() throws JMSException { checkRead(); try { return streamReadChar(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public long readLong() throws JMSException { checkRead(); try { return streamReadLong(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public float readFloat() throws JMSException { checkRead(); try { return streamReadFloat(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public String readString() throws JMSException { checkRead(); try { return streamReadString(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public Object readObject() throws JMSException { checkRead(); try { return streamReadObject(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public short readShort() throws JMSException { checkRead(); try { return streamReadShort(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public double readDouble() throws JMSException { checkRead(); try { return streamReadDouble(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public byte readByte() throws JMSException { checkRead(); try { return streamReadByte(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public int readBytes(final byte[] value) throws JMSException { checkRead(); try { Pair<Integer, Integer> pairRead = streamReadBytes(message.getBodyBuffer(), len, value); len = pairRead.getA(); return pairRead.getB(); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public byte readByte() throws JMSException { checkRead(); try { return streamReadByte(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public String readString() throws JMSException { checkRead(); try { return streamReadString(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public byte readByte() throws JMSException { checkRead(); try { return streamReadByte(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public char readChar() throws JMSException { checkRead(); try { return streamReadChar(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public boolean readBoolean() throws JMSException { checkRead(); try { return streamReadBoolean(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public Object readObject() throws JMSException { checkRead(); try { return streamReadObject(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public String readString() throws JMSException { checkRead(); try { return streamReadString(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public Object readObject() throws JMSException { checkRead(); try { return streamReadObject(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }
@Override public char readChar() throws JMSException { checkRead(); try { return streamReadChar(message.getBodyBuffer()); } catch (IllegalStateException e) { throw new MessageFormatException(e.getMessage()); } catch (IndexOutOfBoundsException e) { throw new MessageEOFException(""); } }