org.codehaus.plexus.util.xml
public class XmlWriterUtil extends Object
XmlWriter
class.
Version: $Id: XmlWriterUtil.java 8660 2010-03-05 21:50:36Z hboutemy $
Field Summary | |
---|---|
static int | DEFAULT_COLUMN_LINE The default column before line wrapping i.e. |
static int | DEFAULT_INDENTATION_SIZE The default line indenter size i.e. |
static String | LS The vm line separator |
Method Summary | |
---|---|
static void | writeComment(XMLWriter writer, String comment)
Convenience method to write XML comment line. |
static void | writeComment(XMLWriter writer, String comment, int indent)
Convenience method to write XML comment line. |
static void | writeComment(XMLWriter writer, String comment, int indent, int indentSize)
Convenience method to write XML comment line. |
static void | writeComment(XMLWriter writer, String comment, int indent, int indentSize, int columnSize)
Convenience method to write XML comment line. |
static void | writeCommentLineBreak(XMLWriter writer)
Convenience method to write XML comment line break. |
static void | writeCommentLineBreak(XMLWriter writer, int columnSize)
Convenience method to write XML comment line break with columnSize as length.
|
static void | writeCommentText(XMLWriter writer, String comment)
Convenience method to write XML comments between two comments line break.
|
static void | writeCommentText(XMLWriter writer, String comment, int indent)
Convenience method to write XML comments between two comments line break.
|
static void | writeCommentText(XMLWriter writer, String comment, int indent, int indentSize)
Convenience method to write XML comment between two comment line break.
|
static void | writeCommentText(XMLWriter writer, String comment, int indent, int indentSize, int columnSize)
Convenience method to write XML comments between two comments line break.
|
static void | writeLineBreak(XMLWriter writer)
Convenience method to write one CRLF .
|
static void | writeLineBreak(XMLWriter writer, int repeat)
Convenience method to repeat CRLF .
|
static void | writeLineBreak(XMLWriter writer, int repeat, int indent)
Convenience method to repeat CRLF and to indent the writer by 2 .
|
static void | writeLineBreak(XMLWriter writer, int repeat, int indent, int indentSize)
Convenience method to repeat CRLF and to indent the writer by indentSize .
|
comment
is splitted to have a size of 80
.
Parameters: writer not null comment
See Also: DEFAULT_INDENTATION_SIZE XmlWriterUtil
comment
is splitted to have a size of 80
and is indented by indent
using 2
as indentation size.
Parameters: writer not null comment indent positive number
See Also: DEFAULT_INDENTATION_SIZE XmlWriterUtil
comment
is splitted to have a size of 80
and is indented by indent
using indentSize
.
Parameters: writer not null comment indent positive number indentSize positive number
See Also: DEFAULT_COLUMN_LINE XmlWriterUtil
comment
is splitted to have a size of columnSize
and is indented by indent
using indentSize
.
Parameters: writer not null comment indent positive number indentSize positive number columnSize positive number
80
.
Parameters: writer not null
See Also: DEFAULT_COLUMN_LINE XmlWriterUtil
columnSize
as length.
Parameters: writer not null columnSize positive number
Parameters: writer not null comment
See Also: DEFAULT_INDENTATION_SIZE XmlWriterUtil
indent
using
2
as indentation size.
Parameters: writer not null comment indent positive number
See Also: DEFAULT_INDENTATION_SIZE XmlWriterUtil
indent
using indentSize
.
Parameters: writer not null comment indent positive number indentSize positive number
See Also: DEFAULT_COLUMN_LINE XmlWriterUtil
indent
using indentSize
.
The column size could be also be specified.
Parameters: writer not null comment indent positive number indentSize positive number columnSize positive number
CRLF
.
Parameters: writer not null writer
CRLF
.
Parameters: writer not null repeat positive number
CRLF
and to indent the writer by 2
.
Parameters: writer not null repeat indent positive number
See Also: DEFAULT_INDENTATION_SIZE XmlWriterUtil
CRLF
and to indent the writer by indentSize
.
Parameters: writer not null repeat indent positive number indentSize positive number