asia.redact.bracket.properties
Class ExplicitOutputFormat

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

public class ExplicitOutputFormat
extends Object
implements OutputFormat

 Compatibility format for simulating java.util.Properties output by encoding characters above ASCII 127 with 
 unicode escapes. Use in conjunction with OutputAdapter.writeAsciiTo(). 
 

Author:
Dave

Field Summary
protected static String lineSeparator
           
protected  ContentType type
           
 
Constructor Summary
ExplicitOutputFormat(ContentType type)
           
 
Method Summary
 String format(String key, char separator, List<String> values, List<String> comments)
           
 String formatContentType()
           
 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

type

protected ContentType type
Constructor Detail

ExplicitOutputFormat

public ExplicitOutputFormat(ContentType type)
Method Detail

formatContentType

public String formatContentType()
Specified by:
formatContentType in interface OutputFormat

formatHeader

public String formatHeader()
Specified by:
formatHeader in interface OutputFormat

format

public String format(String key,
                     char separator,
                     List<String> values,
                     List<String> comments)
Specified by:
format in interface OutputFormat

formatFooter

public String formatFooter()
Specified by:
formatFooter in interface OutputFormat


Copyright © 2011-2013 David R. Smith. All Rights Reserved.