org.jdom.output.Format.getLineSeparator()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.jdom.output.Format.getLineSeparator()方法的一些代码示例,展示了Format.getLineSeparator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.getLineSeparator()方法的具体详情如下:
包路径:org.jdom.output.Format
类名称:Format
方法名:getLineSeparator

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());
  }
}

相关文章