private void moveDataIntoReadBufferArray ( WsByteBuffer newReadBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "moveDataIntoReadBufferArray entry: stream " + myID + " buffer: " + newReadBuffer ) ; } // move the data that is to be sent up the channel into the currentReadReady byte array, and update the currentReadSize if ( newReadBuffer != null ) { int size = newReadBuffer . remaining ( ) ; // limit - pos if ( size > 0 ) { streamReadReady . add ( newReadBuffer ) ; streamReadSize += size ; this . readLatch . countDown ( ) ; } } }
Add a buffer to the list of buffers that will be sent to the WebContainer when a read is requested