docs: protected void payloadAdded(int unwrittenPayloadSize, int totalPayloadSize)
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "payloadAdded", new Object[] { this, new Integer(unwrittenPayloadSize), new Integer(totalPayloadSize) });
  
          _payloadAdded = true;
  
          int unwrittenRecLogAdjustment = unwrittenPayloadSize;
          int totalRecLogAdjustment = totalPayloadSize;
  
          // 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)
          {
              unwrittenRecLogAdjustment += _totalHeaderSize;
          }
  
          // 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)
          {
              totalRecLogAdjustment += _totalHeaderSize;
          }
  
          // Track the payload increases directly. We take no account for this classes header values
          // in these figures.
          _unwrittenDataSize += unwrittenPayloadSize;
          _totalDataSize += totalPayloadSize;
  
          // Pass on the payload adjustment to the parent class.
          _recLog.payloadAdded(unwrittenRecLogAdjustment, totalRecLogAdjustment);
  
          if (tc.isDebugEnabled())
              Tr.debug(tc, "unwrittenDataSize = " + _unwrittenDataSize + " totalDataSize = " + _totalDataSize);
          if (tc.isEntryEnabled())
              Tr.exit(tc, "payloadAdded");
      }