本文整理了Java中weka.core.Utils.lineWrap()
方法的一些代码示例,展示了Utils.lineWrap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.lineWrap()
方法的具体详情如下:
包路径:weka.core.Utils
类名称:Utils
方法名:lineWrap
[英]Implements simple line breaking. Reformats the given string by introducing line breaks so that, ideally, no line exceeds the given number of characters. Line breaks are assumed to be indicated by newline characters. Existing line breaks are left in the input text.
[中]
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
result.append(Utils.lineWrap(firstLine.toString(), lineWidth));
result.append(Utils.lineWrap(gi, lineWidth).replace("\n", "<br>"));
result.append("<br>");
"<font color=red>CAPABILITIES</font>",
((CapabilitiesHandler) object).getCapabilities());
caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
result.append(caps);
((MultiInstanceCapabilitiesHandler) object)
.getMultiInstanceCapabilities());
caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
result.append(caps);
代码示例来源:origin: Waikato/weka-trunk
result.append(Utils.lineWrap(firstLine.toString(), lineWidth));
result.append(Utils.lineWrap(gi, lineWidth).replace("\n", "<br>"));
result.append("<br>");
"<font color=red>CAPABILITIES</font>",
((CapabilitiesHandler) object).getCapabilities());
caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
result.append(caps);
((MultiInstanceCapabilitiesHandler) object)
.getMultiInstanceCapabilities());
caps = Utils.lineWrap(caps, lineWidth).replace("\n", "<br>");
result.append(caps);
内容来源于网络,如有侵权,请联系作者删除!