Class MavenProperties.PropertiesWriter

java.lang.Object
java.io.Writer
java.io.FilterWriter
org.apache.maven.cli.props.MavenProperties.PropertiesWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
Enclosing class:
MavenProperties

public static class MavenProperties.PropertiesWriter extends FilterWriter
This class is used to write properties lines.
  • Constructor Details

    • PropertiesWriter

      public PropertiesWriter(Writer writer, boolean typed)
      Constructor.
      Parameters:
      writer - a Writer object providing the underlying stream
  • Method Details

    • writeProperty

      public void writeProperty(String key, String value) throws IOException
      Writes the given property and its value.
      Parameters:
      key - the property key
      value - the property value
      Throws:
      IOException - if an error occurs
    • writeln

      public void writeln(String s) throws IOException
      Helper method for writing a line with the platform specific line ending.
      Parameters:
      s - the content of the line (may be null)
      Throws:
      IOException - if an error occurs