Code example for BufferUnderflowException

0
     * {@inheritDoc} 
     */ 
    public byte get( int pos ) throws IOException {
        final int offsetPos = initialOffset() + pos;
        if ( offsetPos + 1 > limit() )
            throw new BufferUnderflowException();
        synchronized ( this ) {
            return getRAF( offsetPos ).readByte();
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    public LCByteBuffer get( byte[] dest, int offset, int length )
        throws IOException
    { 
        final int pos = position();
        final int offsetPos = initialOffset() + pos;
        if ( offsetPos + length > limit() )