@Override public byte readByte() { try { return getStream().readByte(); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
@Override public long readLong() { try { return getStream().readLong(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int readUnsignedByte() { try { return getStream().readUnsignedByte(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int readUnsignedShort() { try { return getStream().readUnsignedShort(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public short readShort() { try { return getStream().readShort(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int readInt() { try { return getStream().readInt(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int skipBytes(final int length) { try { for (int i = 0; i < length; i++) { getStream().read(); } return length; } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public void readBytes(final byte[] dst, final int dstIndex, final int length) { try { int nReadBytes = getStream().read(dst, dstIndex, length); if (nReadBytes < length) { ActiveMQClientLogger.LOGGER.compressedLargeMessageError(length, nReadBytes); } } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
/** * from {@link java.io.DataInput} interface */ @Override @SuppressWarnings("deprecation") public String readLine() throws IOException { return getStream().readLine(); }
@Override public long readLong() { try { return getStream().readLong(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public byte readByte() { try { return getStream().readByte(); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
@Override public short readShort() { try { return getStream().readShort(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int readInt() { try { return getStream().readInt(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int readUnsignedByte() { try { return getStream().readUnsignedByte(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public short readShort() { try { return getStream().readShort(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public long readLong() { try { return getStream().readLong(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int skipBytes(final int length) { try { for (int i = 0; i < length; i++) { getStream().read(); } return length; } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public int readInt() { try { return getStream().readInt(); } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }
@Override public byte readByte() { try { return getStream().readByte(); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } }
@Override public void readBytes(final byte[] dst, final int dstIndex, final int length) { try { int nReadBytes = getStream().read(dst, dstIndex, length); if (nReadBytes < length) { ActiveMQClientLogger.LOGGER.compressedLargeMessageError(length, nReadBytes); } } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } }