本文整理了Java中org.jdom.output.Format.getLineSeparator()
方法的一些代码示例,展示了Format.getLineSeparator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.getLineSeparator()
方法的具体详情如下:
包路径:org.jdom.output.Format
类名称:Format
方法名:getLineSeparator
[英]Returns the current line separator.
[中]返回当前行分隔符。
代码示例来源:origin: org.kathrynhuxtable.maven.plugins/htmlfilter-site-maven-plugin
/**
* This will print a newline only if indent is not null.
*
* @param out
* <code>Writer</code> to use
*/
private void newline(Writer out) throws IOException {
if (currentFormat.getIndent() != null) {
out.write(currentFormat.getLineSeparator());
}
}
代码示例来源:origin: info.magnolia/magnolia-core
protected void newline(Writer out) throws IOException {
if (getFormat().getIndent() != null) {
out.write(getFormat().getLineSeparator());
}
}
内容来源于网络,如有侵权,请联系作者删除!