/** * {@inheritDoc} */ @Override public int getInt() { prepareForAccess(4); if (componentCursor.getRemaining() >= 4) { int i = componentCursor.getInt(); index += 4; return i; } else { byte b0 = get(); byte b1 = get(); byte b2 = get(); byte b3 = get(); if (order.equals(ByteOrder.BIG_ENDIAN)) { return (b0 << 24) | ((b1 & 0xFF) << 16) | ((b2 & 0xFF) << 8) | (b3 & 0xFF); } else { return (b3 << 24) | ((b2 & 0xFF) << 16) | ((b1 & 0xFF) << 8) | (b0 & 0xFF); } } }
/** * {@inheritDoc} */ @Override public int getInt() { prepareForAccess(4); if (componentCursor.getRemaining() >= 4) { int i = componentCursor.getInt(); index += 4; return i; } else { byte b0 = get(); byte b1 = get(); byte b2 = get(); byte b3 = get(); if (order.equals(ByteOrder.BIG_ENDIAN)) { return (b0 << 24) | ((b1 & 0xFF) << 16) | ((b2 & 0xFF) << 8) | (b3 & 0xFF); } else { return (b3 << 24) | ((b2 & 0xFF) << 16) | ((b1 & 0xFF) << 8) | (b0 & 0xFF); } } }
/** * @inheritDoc */ public int getInt() { prepareForAccess( 4 ); if ( componentCursor.getRemaining() >= 4 ) { int i = componentCursor.getInt(); index += 4; return i; } else { byte b0 = get(); byte b1 = get(); byte b2 = get(); byte b3 = get(); if ( order.equals( ByteOrder.BIG_ENDIAN ) ) { return ( ( b0 << 24 ) | ( b1 << 16 ) | ( b2 << 8 ) | ( b3 << 0 ) ); } else { return ( ( b3 << 24 ) | ( b2 << 16 ) | ( b1 << 8 ) | ( b0 << 0 ) ); } } }
/** * {@inheritDoc} */ @Override public int getInt(int index) { return cursor(index).getInt(); }
/** * {@inheritDoc} */ public int getInt() { return cursor.getInt(); }
/** * @inheritDoc */ public int getInt() { return cursor.getInt(); }
/** * @inheritDoc */ public int getInt( int index ) { return cursor( index ).getInt(); }
/** * {@inheritDoc} */ @Override public int getInt(int index) { return cursor(index).getInt(); }
/** * {@inheritDoc} */ public int getInt() { return cursor.getInt(); }