asia.redact.bracket.properties.example
Class IndentMultilineFormat

java.lang.Object
  extended by asia.redact.bracket.properties.example.IndentMultilineFormat
All Implemented Interfaces:
OutputFormat

public class IndentMultilineFormat
extends Object
implements OutputFormat

Example of how to customize an output, perhaps for presentation layer use

Author:
Dave

Field Summary
(package private) static String lineSeparator
           
(package private)  char tabChar
           
(package private)  int tabCount
           
 
Constructor Summary
IndentMultilineFormat(int tabCount, char tabChar)
           
 
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

static final String lineSeparator

tabCount

int tabCount

tabChar

char tabChar
Constructor Detail

IndentMultilineFormat

public IndentMultilineFormat(int tabCount,
                             char tabChar)
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.