Refine search
private JMSException handleInputException(final IOException e) { JMSException ex; if (e instanceof EOFException) { ex = new MessageEOFException(e.getMessage()); } else { ex = new MessageFormatException(e.getMessage()); } ex.initCause(e); ex.setLinkedException(e); return ex; } }
@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 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 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 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 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 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(""); } }
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException(" not a String type");
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); throw new MessageFormatException("Not a byte array"); JMSException jmsEx = new MessageEOFException(e.getMessage()); jmsEx.setLinkedException(e); throw jmsEx; } catch (IOException e) { JMSException jmsEx = new MessageFormatException(e.getMessage()); jmsEx.setLinkedException(e); throw jmsEx;
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException(" not a boolean type");
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException("unknown type"); JMSException jmsEx = new MessageEOFException(e.getMessage()); jmsEx.setLinkedException(e); throw jmsEx; } catch (IOException e) { JMSException jmsEx = new MessageFormatException(e.getMessage()); jmsEx.setLinkedException(e); throw jmsEx;
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException(" not a long type");
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException(" not an int type");
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException(" not a double type");
int type = this.dataIn.read(); if (type == -1) { throw new MessageEOFException("reached end of data"); } else { this.dataIn.reset(); throw new MessageFormatException(" not a short type");