/** * @inheritDoc */ public void get( IoBuffer bb ) { while ( bb.hasRemaining() ) { int remainingBefore = bb.remaining(); prepareForAccess( remainingBefore ); componentCursor.get( bb ); int remainingAfter = bb.remaining(); // Advance index by actual amount got. int chunkSize = remainingBefore - remainingAfter; index += chunkSize; } }
/** * {@inheritDoc} */ @Override public void get(IoBuffer bb) { while (bb.hasRemaining()) { int remainingBefore = bb.remaining(); prepareForAccess(remainingBefore); componentCursor.get(bb); int remainingAfter = bb.remaining(); // Advance index by actual amount got. int chunkSize = remainingBefore - remainingAfter; index += chunkSize; } }
/** * {@inheritDoc} */ @Override public void get(IoBuffer bb) { while (bb.hasRemaining()) { int remainingBefore = bb.remaining(); prepareForAccess(remainingBefore); componentCursor.get(bb); int remainingAfter = bb.remaining(); // Advance index by actual amount got. int chunkSize = remainingBefore - remainingAfter; index += chunkSize; } }
/** * @inheritDoc */ public byte get() { prepareForAccess( 1 ); byte b = componentCursor.get(); index += 1; return b; }
/** * places the data starting at current position into the * supplied {@link IoBuffer} */ public void get( IoBuffer bb ) { cursor.get( bb ); }
/** * {@inheritDoc} */ @Override public void get(int index, IoBuffer bb) { cursor(index).get(bb); }
/** * @inheritDoc */ public void get( int index, IoBuffer bb ) { cursor( index ).get( bb ); }
/** * Returns the byte at the current position in the buffer * */ public byte get() { return cursor.get(); }
/** * {@inheritDoc} */ @Override public byte get(int index) { return cursor(index).get(); }
/** * @return the byte at the current position in the buffer * */ public byte get() { return cursor.get(); }
/** * @inheritDoc */ public byte get( int index ) { return cursor( index ).get(); }
/** * @return the byte at the current position in the buffer * */ public byte get() { return cursor.get(); }
/** * {@inheritDoc} */ @Override public byte get() { prepareForAccess(1); byte b = componentCursor.get(); index += 1; return b; }
/** * places the data starting at current position into the * supplied {@link IoBuffer} */ public void get(IoBuffer bb) { cursor.get(bb); }
/** * {@inheritDoc} */ @Override public void get(int index, IoBuffer bb) { cursor(index).get(bb); }
/** * {@inheritDoc} */ @Override public byte get(int index) { return cursor(index).get(); }
/** * places the data starting at current position into the * supplied {@link IoBuffer} */ public void get(IoBuffer bb) { cursor.get(bb); }
/** * {@inheritDoc} */ @Override public byte get() { prepareForAccess(1); byte b = componentCursor.get(); index += 1; return b; }