本文整理了Java中org.apache.xml.serialize.OutputFormat.getLineWidth()
方法的一些代码示例,展示了OutputFormat.getLineWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputFormat.getLineWidth()
方法的具体详情如下:
包路径:org.apache.xml.serialize.OutputFormat
类名称:OutputFormat
方法名:getLineWidth
[英]Return the selected line width for breaking up long lines. When indenting, and only when indenting, long lines will be broken at space boundaries based on this line width. No line wrapping occurs if this value is zero.
[中]
代码示例来源:origin: org.geotools/gt2-xml-xsd
/**
* Returns the line width for breaking up long lines.
* <p>
* When indenting, and only when indenting, long lines will be broken at
* space boundaries based on this line width. No line wrapping occurs if
* this value is zero.
* </p>
* <p>
* Defaults to <code>72</code> characters per line.
* </p>
*
* @return the number of characters at which line wrapping happens, or zero
* for no line wrapping
* @see #isIndenting()
*/
public int getLineWidth() {
return outputFormat.getLineWidth();
}
代码示例来源:origin: org.geotools.xsd/gt-core
/**
* Returns the line width for breaking up long lines.
* <p>
* When indenting, and only when indenting, long lines will be broken at
* space boundaries based on this line width. No line wrapping occurs if
* this value is zero.
* </p>
* <p>
* Defaults to <code>72</code> characters per line.
* </p>
*
* @return the number of characters at which line wrapping happens, or zero
* for no line wrapping
* @see #isIndenting()
*/
public int getLineWidth() {
return outputFormat.getLineWidth();
}
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
if ( ( 2 * indent ) > _format.getLineWidth() && _format.getLineWidth() > 0 )
indent = _format.getLineWidth() / 2;
代码示例来源:origin: com.rackspace.apache/xerces2-xsd11
if ( _format.getLineWidth() > 0 &&
_thisIndent + _line.length() + _spaces + _text.length() > _format.getLineWidth() ) {
flushLine( false );
try {
内容来源于网络,如有侵权,请联系作者删除!