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.

@param text The text to be added to the buffer.
java/zylib/src/main/java/com/google/security/zynamics/zylib/strings/CircularStringBuffer.java