src/main/java/org/michailov/async/io/StringRingBuffer.java
public String peek(int delta) {
        if (delta < 0) {
            throw new IllegalArgumentException("Argument delta may not be negative.");
        }
        
        if (getAvailableToRead() <= delta) {
            return null;
        }
        
        int i = (getReadPosition() + delta) % getBufferLength();
        String s = _buffer[i];
        return s;
    }
/**
     * Gets the String at a given relative position ahead of the current virtual read position.
     *  
     * @param   delta   A relative position ahead of the virtual read position to peek at.
     * @return          The String at the peek position or <b>null</b> if <i>delta</i>
     *                  is greater than {@link RingBuffer#getAvailableToRead}. 
     */
Gets the String at a given relative position ahead of the current virtual read position.

@param   delta   A relative position ahead of the virtual read position to peek at.
@return          The String at the peek position or null if delta
is greater than  RingBuffer#getAvailableToRead.
Gets the String at a given relative position ahead of the current virtual read position . @param delta A relative position ahead of the virtual read position to peek at . @return The String at the peek position or null if delta is greater than RingBuffer#getAvailableToRead .
public String peek(int delta) {
        if (delta < 0) {
            throw new IllegalArgumentException("Argument delta may not be negative.");
        }
        if (getAvailableToRead() <= delta) {
            return null;
        }
        int i = (getReadPosition() + delta) % getBufferLength();
        String s = _buffer[i];
        return s;
    }
public String peek ( int delta ) { if ( delta < 0 ) { throw new IllegalArgumentException ( "Argument delta may not be negative." ) ; } if ( getAvailableToRead ( ) <= delta ) { return null ; } int i = ( getReadPosition ( ) + delta ) % getBufferLength ( ) ; String s = _buffer [ i ] ; return s ; }
Gets the String at a given relative position ahead of the current virtual read position.
Gets the String at a given relative position ahead of the current virtual read position .