/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override public boolean isSupportBufferWindow() { return input.isBuffered(); }
/** * {@inheritDoc} */ @Override final public float readFloat() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 4) { final float result = buffer.getFloat(); buffer.shrink(); return result; } } return Float.intBitsToFloat(readInt()); }
/** * {@inheritDoc} */ @Override final public double readDouble() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 8) { final double result = buffer.getDouble(); buffer.shrink(); return result; } } return Double.longBitsToDouble(readLong()); }
/** * {@inheritDoc} */ @Override public short readShort() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 2) { final short result = buffer.getShort(); buffer.shrink(); return result; } } return (short) ((readByte() & 0xff) << 8 | readByte() & 0xff); }
/** * {@inheritDoc} */ @Override public int readInt() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 4) { final int result = buffer.getInt(); buffer.shrink(); return result; } } return (readShort() & 0xffff) << 16 | readShort() & 0xffff; }
/** * {@inheritDoc} */ @Override public char readChar() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 2) { final char result = buffer.getChar(); buffer.shrink(); return result; } } return (char) ((readByte() & 0xff) << 8 | readByte() & 0xff); }
/** * {@inheritDoc} */ @Override public long readLong() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 8) { final long result = buffer.getLong(); buffer.shrink(); return result; } } return (readInt() & 0xffffffffL) << 32 | readInt() & 0xffffffffL; }
/** * {@inheritDoc} */ @Override public int readInt() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 4) { final int result = buffer.getInt(); buffer.shrink(); return result; } } return (readShort() & 0xffff) << 16 | readShort() & 0xffff; }
/** * {@inheritDoc} */ @Override public long readLong() throws IOException { if (input.isBuffered()) { final Buffer buffer = input.getBuffer(); if (buffer != null && buffer.remaining() >= 8) { final long result = buffer.getLong(); buffer.shrink(); return result; } } return (readInt() & 0xffffffffL) << 32 | readInt() & 0xffffffffL; }