public class XMLOutputFormat extends Object implements OutputFormat
| Modifier and Type | Field and Description |
|---|---|
private String |
comment |
private static String |
doctype |
private static Pattern |
specialChars |
private static String |
top |
lineSeparator| Constructor and Description |
|---|
XMLOutputFormat(String comment) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(String key,
char separator,
List<String> values,
Comment comments) |
String |
formatContentType() |
String |
formatFooter() |
String |
formatHeader() |
private boolean |
hasXMLSpecialChar(String item) |
private static final String top
private static final String doctype
private static final Pattern specialChars
private final String comment
public XMLOutputFormat(String comment)
public String formatContentType()
formatContentType in interface OutputFormatpublic String formatHeader()
formatHeader in interface OutputFormatpublic String format(String key, char separator, List<String> values, Comment comments)
format in interface OutputFormatpublic String formatFooter()
formatFooter in interface OutputFormatprivate boolean hasXMLSpecialChar(String item)
Copyright © 2011–2016 David R. Smith. All rights reserved.