Class XmlNodeBuilder

java.lang.Object
org.apache.maven.internal.xml.XmlNodeBuilder

public class XmlNodeBuilder extends Object
  • Constructor Details

    • XmlNodeBuilder

      public XmlNodeBuilder()
  • Method Details

    • build

      public static XmlNodeImpl build(Reader reader) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
    • build

      public static XmlNodeImpl build(Reader reader, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Parameters:
      reader - the reader
      locationBuilder - the builder
      Returns:
      DOM
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - xml exception
      IOException - io
      Since:
      3.2.0
    • build

      public static XmlNodeImpl build(InputStream is, String encoding) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
    • build

      public static XmlNodeImpl build(InputStream is, String encoding, boolean trim) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
    • build

      public static XmlNodeImpl build(Reader reader, boolean trim) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
    • build

      public static XmlNodeImpl build(Reader reader, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Parameters:
      reader - the reader
      trim - to trim
      locationBuilder - the builder
      Returns:
      DOM
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - xml exception
      IOException - io
      Since:
      3.2.0
    • build

      public static XmlNodeImpl build(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
    • build

      public static XmlNodeImpl build(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean trim) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
    • build

      public static XmlNodeImpl build(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Parameters:
      locationBuilder - builder
      parser - the parser
      trim - do trim
      Returns:
      DOM
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - xml exception
      IOException - io
      Since:
      3.2.0