Class XmlWriterUtil

java.lang.Object
org.apache.maven.shared.utils.xml.XmlWriterUtil

@Deprecated public class XmlWriterUtil extends Object
Deprecated.
Utility class for the XmlWriter class.
Author:
Vincent Siveton
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    The default column before line wrapping i.e.
    static final int
    Deprecated.
    The default line indenter size i.e.
    static final String
    Deprecated.
    The vm line separator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    writeComment(XMLWriter writer, String comment)
    Deprecated.
    Convenience method to write XML comment line.
    static void
    writeComment(XMLWriter writer, String comment, int indent)
    Deprecated.
    Convenience method to write XML comment line.
    static void
    writeComment(XMLWriter writer, String comment, int indent, int indentSize)
    Deprecated.
    Convenience method to write XML comment line.
    static void
    writeComment(XMLWriter writer, String comment, int indent, int indentSize, int columnSize)
    Deprecated.
    Convenience method to write XML comment line.
    static void
    Deprecated.
    Convenience method to write XML comment line break.
    static void
    writeCommentLineBreak(XMLWriter writer, int columnSize)
    Deprecated.
    Convenience method to write XML comment line break with columnSize as length.
    static void
    writeCommentText(XMLWriter writer, String comment)
    Deprecated.
    Convenience method to write XML comments between two comments line break.
    static void
    writeCommentText(XMLWriter writer, String comment, int indent)
    Deprecated.
    Convenience method to write XML comments between two comments line break.
    static void
    writeCommentText(XMLWriter writer, String comment, int indent, int indentSize)
    Deprecated.
    Convenience method to write XML comment between two comment line break.
    static void
    writeCommentText(XMLWriter writer, String comment, int indent, int indentSize, int columnSize)
    Deprecated.
    Convenience method to write XML comments between two comments line break.
    static void
    Deprecated.
    Convenience method to write one CRLF.
    static void
    writeLineBreak(XMLWriter writer, int repeat)
    Deprecated.
    Convenience method to repeat CRLF.
    static void
    writeLineBreak(XMLWriter writer, int repeat, int indent)
    Deprecated.
    Convenience method to repeat CRLF and to indent the writer by 2.
    static void
    writeLineBreak(XMLWriter writer, int repeat, int indent, int indentSize)
    Deprecated.
    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 Details

    • LS

      public static final String LS
      Deprecated.
      The vm line separator.
    • DEFAULT_INDENTATION_SIZE

      public static final int DEFAULT_INDENTATION_SIZE
      Deprecated.
      The default line indenter size i.e. 2.
      See Also:
    • DEFAULT_COLUMN_LINE

      public static final int DEFAULT_COLUMN_LINE
      Deprecated.
      The default column before line wrapping i.e. 80.
      See Also:
  • Constructor Details

    • XmlWriterUtil

      public XmlWriterUtil()
      Deprecated.
  • Method Details

    • writeLineBreak

      public static void writeLineBreak(XMLWriter writer) throws IOException
      Deprecated.
      Convenience method to write one CRLF.
      Parameters:
      writer - not null writer
      Throws:
      IOException - if writing fails
    • writeLineBreak

      public static void writeLineBreak(XMLWriter writer, int repeat) throws IOException
      Deprecated.
      Convenience method to repeat CRLF.
      Parameters:
      writer - not null
      repeat - positive number
      Throws:
      IOException - if writing fails
    • writeLineBreak

      public static void writeLineBreak(XMLWriter writer, int repeat, int indent) throws IOException
      Deprecated.
      Convenience method to repeat CRLF and to indent the writer by 2.
      Parameters:
      writer - not null
      repeat - the number of repetitions of the indent
      indent - positive number
      Throws:
      IOException - if writing fails
      See Also:
    • writeLineBreak

      public static void writeLineBreak(XMLWriter writer, int repeat, int indent, int indentSize) throws IOException
      Deprecated.
      Convenience method to repeat CRLF and to indent the writer by indentSize.
      Parameters:
      writer - not null
      repeat - the number of repetitions of the indent
      indent - positive number
      indentSize - positive number
      Throws:
      IOException - if writing fails
    • writeCommentLineBreak

      public static void writeCommentLineBreak(XMLWriter writer) throws IOException
      Deprecated.
      Convenience method to write XML comment line break. Its size is 80.
      Parameters:
      writer - not null
      Throws:
      IOException - if writing fails
      See Also:
    • writeCommentLineBreak

      public static void writeCommentLineBreak(XMLWriter writer, int columnSize) throws IOException
      Deprecated.
      Convenience method to write XML comment line break with columnSize as length.
      Parameters:
      writer - not null
      columnSize - positive number
      Throws:
      IOException - if writing fails
    • writeComment

      public static void writeComment(XMLWriter writer, String comment) throws IOException
      Deprecated.
      Convenience method to write XML comment line. The comment is split to have a size of 80.
      Parameters:
      writer - not null
      comment - the comment to write
      Throws:
      IOException - if writing fails
      See Also:
    • writeComment

      public static void writeComment(XMLWriter writer, String comment, int indent) throws IOException
      Deprecated.
      Convenience method to write XML comment line. The comment is split to have a size of 80 and is indented by indent using 2 as indentation size.
      Parameters:
      writer - not null
      comment - the comment to write
      indent - positive number
      Throws:
      IOException - if writing fails
      See Also:
    • writeComment

      public static void writeComment(XMLWriter writer, String comment, int indent, int indentSize) throws IOException
      Deprecated.
      Convenience method to write XML comment line. The comment is split to have a size of 80 and is indented by indent using indentSize.
      Parameters:
      writer - not null
      comment - the comment to write
      indent - positive number
      indentSize - positive number
      Throws:
      IOException - if writing fails
      See Also:
    • writeComment

      public static void writeComment(XMLWriter writer, String comment, int indent, int indentSize, int columnSize) throws IOException
      Deprecated.
      Convenience method to write XML comment line. The comment is split to have a size of columnSize and is indented by indent using indentSize.
      Parameters:
      writer - not null
      comment - the comment to write
      indent - positive number
      indentSize - positive number
      columnSize - positive number
      Throws:
      IOException - if writing fails
    • writeCommentText

      public static void writeCommentText(XMLWriter writer, String comment) throws IOException
      Deprecated.
      Convenience method to write XML comments between two comments line break. The XML comment block is not indented.
      Parameters:
      writer - not null
      comment - the comment to write
      Throws:
      IOException - if writing fails
      See Also:
    • writeCommentText

      public static void writeCommentText(XMLWriter writer, String comment, int indent) throws IOException
      Deprecated.
      Convenience method to write XML comments between two comments line break. The XML comment block is also indented by indent using 2 as indentation size.
      Parameters:
      writer - not null
      comment - the comment to write
      indent - positive number
      Throws:
      IOException - if writing fails
      See Also:
    • writeCommentText

      public static void writeCommentText(XMLWriter writer, String comment, int indent, int indentSize) throws IOException
      Deprecated.
      Convenience method to write XML comment between two comment line break. The XML comment block is also indented by indent using indentSize.
      Parameters:
      writer - not null
      comment - the comment to write
      indent - positive number
      indentSize - positive number
      Throws:
      IOException - if writing fails
      See Also:
    • writeCommentText

      public static void writeCommentText(XMLWriter writer, String comment, int indent, int indentSize, int columnSize) throws IOException
      Deprecated.
      Convenience method to write XML comments between two comments line break. The XML comment block is also indented by indent using indentSize. The column size could be also be specified.
      Parameters:
      writer - not null
      comment - the comment to write
      indent - positive number
      indentSize - positive number
      columnSize - positive number
      Throws:
      IOException - if writing fails