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
This class is used to write properties lines.
- 
Field SummaryFields inherited from class java.io.FilterWriterout
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidHelper method for writing a line with the platform specific line ending.voidwriteProperty(String key, String value) Writes the given property and its value.
- 
Constructor Details- 
PropertiesWriterConstructor.- Parameters:
- writer- a Writer object providing the underlying stream
 
 
- 
- 
Method Details- 
writePropertyWrites the given property and its value.- Parameters:
- key- the property key
- value- the property value
- Throws:
- IOException- if an error occurs
 
- 
writelnHelper 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
 
 
-