+ private static SyndContentImpl toSyndContentImpl(String description) {
+ SyndContentImpl ret;
+
+ ret = new SyndContentImpl();
+ ret.setType("text/html");
+ ret.setValue(description);
+
+ return ret;
+ }
+
+ private static String getFeedTitle(Properties props) {
+ return props.getProperty(KEY_FEED_TITLE);
+ }
+
+ private static void appendHTMLHeader(StringBuffer sb, Properties props)
+ throws IOException {
+ String fileName;
+ File f;
+
+ fileName = props.getProperty(KEY_HTML_HEADER_FILE);
+
+ if (fileName == null) {
+ LOG.info(KEY_HTML_HEADER_FILE + " is not set");
+ return ;
+ }
+
+ f = new File(fileName);
+
+ sb.append("<head>\n");
+ sb.append(new String(Files.readAllBytes(f.toPath()),
+ StandardCharsets.UTF_8));
+ sb.append("</head>\n");
+ }
+