After this method has been called the specified buffer is empty as its contents have been transferred to this one.
6263646566676869707172
domOutput.appendEncoded(shortcutText); // Then a space domOutput.appendEncoded(" "); // And finally the text of the menu itself. final OutputBuffer text = item.getLabel().getText().getText(); domOutput.transferContentsFrom(text); } } /* ===========================================================================
7273747576777879808182
// Get the OutputBuffer. OutputBuffer outputBuffer = separatorManager.getOutputBuffer(); // Append the contents of temporary OutputBuffer to the managed one. outputBuffer.transferContentsFrom(temporaryBuffer); } } } /*
7778798081828384858687
TestDOMOutputBuffer buffer = new TestDOMOutputBuffer(); if (renderer.open(buffer, item)) { buffer.transferContentsFrom(item.getLabel().getText().getText()); renderer.close(buffer, item); } // Extract the output from the menu item rendering as a string.