docs: protected void payloadAdded(int payloadSize)
    {
        if (tc.isEntryEnabled()) Tr.entry(tc, "payloadAdded", new Object[] {this, new Integer(payloadSize)});
            
        int unwrittenRecUnitAdjustment = payloadSize;
        int totalRecUnitAdjustment = payloadSize;            
        
        // When adding new payload, if there was currently no unwritten data then we will need to
        // an additional header in order to be able to contain this information. When we pass on
        // this payload adjustment we must account for the header size.
        if (_unwrittenDataSize == 0)
        {
            unwrittenRecUnitAdjustment += HEADER_SIZE;                                
        }
          
        // When adding new payload, if there was currently no written data then we will need to
        // an additional header in order to be able to contain this information. When we pass on
        // this payload adjustment we must account for the header size.
        if (_totalDataSize == 0)
        {
            totalRecUnitAdjustment += HEADER_SIZE;
        } 
        
        // Track the payload increases directly. We take no account for this classes header values
        // in these figures.
        _unwrittenDataSize += payloadSize;
        _totalDataSize += payloadSize;       
          
        // Pass on the payload adjustment to the parent class.
        _recUnit.payloadAdded(unwrittenRecUnitAdjustment, totalRecUnitAdjustment);
              
        if (tc.isDebugEnabled()) Tr.debug(tc, "unwrittenDataSize = " + _unwrittenDataSize + " totalDataSize = " + _totalDataSize);
        
        if (tc.isEntryEnabled()) Tr.exit(tc, "payloadAdded");
    }