/** * Creates a ringbuffer with the given initial contents. * * @param content * the intial contents of the buffer. */ public CharacterRingBuffer(CharSequence content) { int cap = DEFAULT_CAPACITY; while (cap < content.length()) { cap *= 2; } buffer = new char[cap]; beginOffset = 0; length = 0; append(content); }
htmlSource.append(htmlData);