|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.util.xml.XmlWriterUtil
Utility class for the XmlWriter
class.
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 |
Constructor Summary | |
XmlWriterUtil()
|
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LS
public static final int DEFAULT_INDENTATION_SIZE
public static final int DEFAULT_COLUMN_LINE
Constructor Detail |
public XmlWriterUtil()
Method Detail |
public static void writeLineBreak(XMLWriter writer)
CRLF
.
writer
- not null writerpublic static void writeLineBreak(XMLWriter writer, int repeat)
CRLF
.
writer
- not nullrepeat
- positive numberpublic static void writeLineBreak(XMLWriter writer, int repeat, int indent)
CRLF
and to indent the writer by 2
.
writer
- not nullrepeat
- indent
- positive numberDEFAULT_INDENTATION_SIZE
,
writeLineBreak(XMLWriter, int, int, int)
public static void writeLineBreak(XMLWriter writer, int repeat, int indent, int indentSize)
CRLF
and to indent the writer by indentSize
.
writer
- not nullrepeat
- indent
- positive numberindentSize
- positive numberpublic static void writeCommentLineBreak(XMLWriter writer)
80
.
writer
- not nullDEFAULT_COLUMN_LINE
,
writeCommentLineBreak(XMLWriter, int)
public static void writeCommentLineBreak(XMLWriter writer, int columnSize)
columnSize
as length.
writer
- not nullcolumnSize
- positive numberpublic static void writeComment(XMLWriter writer, String comment)
comment
is splitted to have a size of 80
.
writer
- not nullcomment
- DEFAULT_INDENTATION_SIZE
,
writeComment(XMLWriter, String, int, int)
public static void writeComment(XMLWriter writer, String comment, int indent)
comment
is splitted to have a size of 80
and is indented by indent
using 2
as indentation size.
writer
- not nullcomment
- indent
- positive numberDEFAULT_INDENTATION_SIZE
,
writeComment(XMLWriter, String, int, int)
public static void writeComment(XMLWriter writer, String comment, int indent, int indentSize)
comment
is splitted to have a size of 80
and is indented by indent
using indentSize
.
writer
- not nullcomment
- indent
- positive numberindentSize
- positive numberDEFAULT_COLUMN_LINE
,
writeComment(XMLWriter, String, int, int, int)
public static void writeComment(XMLWriter writer, String comment, int indent, int indentSize, int columnSize)
comment
is splitted to have a size of columnSize
and is indented by indent
using indentSize
.
writer
- not nullcomment
- indent
- positive numberindentSize
- positive numbercolumnSize
- positive numberpublic static void writeCommentText(XMLWriter writer, String comment)
writer
- not nullcomment
- DEFAULT_INDENTATION_SIZE
,
writeCommentText(XMLWriter, String, int, int)
public static void writeCommentText(XMLWriter writer, String comment, int indent)
indent
using
2
as indentation size.
writer
- not nullcomment
- indent
- positive numberDEFAULT_INDENTATION_SIZE
,
writeCommentText(XMLWriter, String, int, int)
public static void writeCommentText(XMLWriter writer, String comment, int indent, int indentSize)
indent
using indentSize
.
writer
- not nullcomment
- indent
- positive numberindentSize
- positive numberDEFAULT_COLUMN_LINE
,
writeCommentText(XMLWriter, String, int, int, int)
public static void writeCommentText(XMLWriter writer, String comment, int indent, int indentSize, int columnSize)
indent
using indentSize
.
The column size could be also be specified.
writer
- not nullcomment
- indent
- positive numberindentSize
- positive numbercolumnSize
- positive number
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |