Class SettingsStaxWriter

java.lang.Object
org.apache.maven.settings.v4.SettingsStaxWriter

@Generated public class SettingsStaxWriter extends Object
  • Field Details

  • Constructor Details

    • SettingsStaxWriter

      public SettingsStaxWriter()
  • Method Details

    • setNamespace

      public void setNamespace(String namespace)
      Method setNamespace.
      Parameters:
      namespace - the namespace to use.
    • setSchemaLocation

      public void setSchemaLocation(String schemaLocation)
      Method setSchemaLocation.
      Parameters:
      schemaLocation - the schema location to use.
    • setFileComment

      public void setFileComment(String fileComment)
      Method setFileComment.
      Parameters:
      fileComment - a fileComment object.
    • setAddLocationInformation

      public void setAddLocationInformation(boolean addLocationInformation)
      Method setAddLocationInformation.
    • setStringFormatter

      public void setStringFormatter(Function<InputLocation,String> stringFormatter)
      Method setStringFormatter.
      Parameters:
      stringFormatter -
    • write

      public void write(Writer writer, Settings settings) throws IOException, XMLStreamException
      Method write.
      Parameters:
      writer - a writer object
      settings - a Settings object
      Throws:
      IOException - IOException if any
      XMLStreamException
    • write

      public void write(OutputStream stream, Settings settings) throws IOException, XMLStreamException
      Method write.
      Parameters:
      stream - a stream object
      settings - a Settings object
      Throws:
      IOException - IOException if any
      XMLStreamException
    • writeLocationTracking

      protected void writeLocationTracking(InputLocationTracker locationTracker, Object key, XMLStreamWriter serializer) throws IOException, XMLStreamException
      Method writeLocationTracking.
      Parameters:
      locationTracker -
      key -
      serializer -
      Throws:
      IOException
      XMLStreamException
    • toString

      protected String toString(InputLocation location)
      Method toString.
      Parameters:
      location -
      Returns:
      String