final DefaultRenderableTextFactory textFactory = new DefaultRenderableTextFactory
(new HtmlOutputProcessorMetaData(
HtmlOutputProcessorMetaData.PAGINATION_NONE));
textFactory.startText();
CodePointBuffer buffer = Utf16LE.getInstance().decodeString("T\r\n\r\n\r\nT", null); //$NON-NLS-1$
final int[] data = buffer.getBuffer();
final int length = buffer.getLength();
final ElementDefaultStyleSheet defaultStyle = ElementDefaultStyleSheet.getDefaultStyle();
final RenderNode[] renderNodes =
textFactory.createText(data, 0, length, new SimpleStyleSheet(defaultStyle), LegacyType.INSTANCE, new InstanceID(),
ReportAttributeMap.EMPTY_MAP);
final RenderNode[] finishNodes = textFactory.finishText();