public static String getFooter(PrintStyles style) { if (style == PrintStyles.XML) return getXmlFooter(); if (style == PrintStyles.HTML) return getHtmlFooter(); if (style == PrintStyles.TXT) return getTextFooter(); return ""; }
public static String getFormatLine(PrintStyles style, String name, boolean read, boolean write, boolean wmp, String ext) { if (style == PrintStyles.XML) { return getXmlFormatLine(name, read, write, wmp, ext); } if (style == PrintStyles.HTML) { return getHtmlFormatLine(name, read, write, ext); } if (style == PrintStyles.TXT) { return getTextFormatLine(name, read, write, wmp, ext); } return ""; }
public static String getHeader(PrintStyles style) { if (style == PrintStyles.XML) return getXmlHeader(); if (style == PrintStyles.HTML) return getHtmlHeader(); if (style == PrintStyles.TXT) return getTextHeader(); return ""; }
LOGGER.info(getHeader(printStyle)); getFormatLine(printStyle, readerFormatName, read, write, wmp, ext.toString())); LOGGER.info(getFooter(printStyle));