public class BasicOutputFormat extends Object implements OutputFormat
Default formatting for properties output. You can implement your own if you don't like this one or it doesn't do what you require. Sample output with timestamp and eof marker: #;; last-generated-on=Sat Jan 05 22:27:53 EST 2013 # Comment... item1:Another value \ Some more \ Yet Another item3 = Something item0=This value #;; end properties file
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
dateFormatISO8601 |
protected static String |
lineSeparator |
| Constructor and Description |
|---|
BasicOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(String key,
char separator,
List<String> values,
List<String> comments) |
String |
formatContentType() |
String |
formatFooter() |
String |
formatHeader() |
protected static final String lineSeparator
protected static final SimpleDateFormat dateFormatISO8601
public String formatContentType()
formatContentType in interface OutputFormatpublic String formatHeader()
formatHeader in interface OutputFormatpublic String format(String key, char separator, List<String> values, List<String> comments)
format in interface OutputFormatpublic String formatFooter()
formatFooter in interface OutputFormatCopyright © 2011-2014 David R. Smith. All Rights Reserved.