public void add(final String text){
  final String[] lines=text.split("\n");
  if (lines.length > 0) {
    addToBuffer(lines);
  }
 else {
    addToBuffer(new String[]{text});
  }
}

public void add ( final String text ) { final String [ ] lines = text . split ( "\n" ) ; if ( lines . length > 0 ) { addToBuffer ( lines ) ; } else { addToBuffer ( new String [ ] { text } ) ; } }
adds the given text to the circular buffer .
