code: protected void notifyBufferChange(char[] newData, int numChars) {
          synchronized(bufferChangeLoggers) {
              Iterator<BufferChangeLogger> iterator = bufferChangeLoggers.iterator();
              while (iterator.hasNext()) {
                  iterator.next().bufferChanged(newData, numChars);
              }
          }
      }
docs: Notifies all registered BufferChangeLogger instances of a change.
  
  @param newData the buffer that contains the new data being added
  @param numChars the number of valid characters in the buffer