Class XmlWriterUtil
java.lang.Object
org.apache.maven.shared.utils.xml.XmlWriterUtil
Utility class for the
XmlWriter
class.- Author:
- Vincent Siveton
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default column before line wrapping i.e.static final int
The default line indenter size i.e.static final String
The vm line separator -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 withcolumnSize
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 oneCRLF
.static void
writeLineBreak
(XMLWriter writer, int repeat) Convenience method to repeatCRLF
.static void
writeLineBreak
(XMLWriter writer, int repeat, int indent) Convenience method to repeatCRLF
and to indent the writer by2
.static void
writeLineBreak
(XMLWriter writer, int repeat, int indent, int indentSize) Convenience method to repeatCRLF
and to indent the writer byindentSize
.
-
Field Details
-
LS
The vm line separator -
DEFAULT_INDENTATION_SIZE
public static final int DEFAULT_INDENTATION_SIZEThe default line indenter size i.e. 2.- See Also:
-
DEFAULT_COLUMN_LINE
public static final int DEFAULT_COLUMN_LINEThe default column before line wrapping i.e. 80.- See Also:
-
-
Constructor Details
-
XmlWriterUtil
public XmlWriterUtil()
-
-
Method Details