src/main/java/org/michailov/async/io/StringRingBuffer.java
public String write(String s) {
        if (getAvailableToWrite() <= 0) {
            return null;
        }
        
        int i = getWritePosition();
        _buffer[i] = s;

        advanceWritePosition(1);
        return s;
    }
/**
     * Writes a String at the virtual write position, and advances the virtual write position by 1.
     * 
     * @param   s   String to be written.   
     * @return      The String that was written or <b>null</b> if no space was available to write.
     */
Writes a String at the virtual write position, and advances the virtual write position by 1.

@param   s   String to be written.
@return      The String that was written or null if no space was available to write.
Writes a String at the virtual write position and advances the virtual write position by 1 . @param s String to be written . @return The String that was written or null if no space was available to write .
public String write(String s) {
        if (getAvailableToWrite() <= 0) {
            return null;
        }
        int i = getWritePosition();
        _buffer[i] = s;
        advanceWritePosition(1);
        return s;
    }
public String write ( String s ) { if ( getAvailableToWrite ( ) <= 0 ) { return null ; } int i = getWritePosition ( ) ; _buffer [ i ] = s ; advanceWritePosition ( 1 ) ; return s ; }
Writes a String at the virtual write position, and advances the virtual write position by 1.
Writes a String at the virtual write position and advances the virtual write position by 1 .