private synchronized void addBuffer(String line){
  if (buffer != null) {
    buffer.add(line);
  }
}

private synchronized void addBuffer ( String line ) { if ( buffer != null ) { buffer . add ( line ) ; } }
add line to internal buffer
