Package org.apache.maven.cli.props
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 Summary
Fields inherited from class java.io.FilterWriter
out
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Helper method for writing a line with the platform specific line ending.void
writeProperty
(String key, String value) Writes the given property and its value.
-
Constructor Details
-
PropertiesWriter
Constructor.- Parameters:
writer
- a Writer object providing the underlying stream
-
-
Method Details
-
writeProperty
Writes the given property and its value.- Parameters:
key
- the property keyvalue
- the property value- Throws:
IOException
- if an error occurs
-
writeln
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
-