asia.redact.bracket.properties
Class BasicOutputFormat
java.lang.Object
asia.redact.bracket.properties.BasicOutputFormat
- All Implemented Interfaces:
- OutputFormat
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
- Author:
- Dave
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lineSeparator
protected static final String lineSeparator
BasicOutputFormat
public BasicOutputFormat()
format
public String format(String key,
char separator,
List<String> values,
List<String> comments)
- Specified by:
format in interface OutputFormat
formatHeader
public String formatHeader()
- Specified by:
formatHeader in interface OutputFormat
formatFooter
public String formatFooter()
- Specified by:
formatFooter in interface OutputFormat
Copyright © 2011-2013 David R. Smith. All Rights Reserved.