asia.redact.bracket.properties
Class BasicOutputFormat

java.lang.Object
  extended by 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

Field Summary
protected static String lineSeparator
           
 
Constructor Summary
BasicOutputFormat()
           
 
Method Summary
 String format(String key, char separator, List<String> values, List<String> comments)
           
 String formatFooter()
           
 String formatHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineSeparator

protected static final String lineSeparator
Constructor Detail

BasicOutputFormat

public BasicOutputFormat()
Method Detail

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.