- private static void appendHTMLHead(StringBuffer sb, Configuration cfg)
- throws IOException {
- File f;
-
- f = cfg.getHTMLHeaderFile();
- if (f == null) {
- LOG.info("There is no declared HTML header file.");
- return ;
- }
-
- sb.append("<!DOCTYPE html>\n");
- sb.append("<html>\n");
- sb.append("<head>\n");
- sb.append(new String(Files.readAllBytes(f.toPath()),
- StandardCharsets.UTF_8));
- sb.append("</head>\n");
- }
-
- private static void appendHTMLContentHeader(StringBuffer sb, String title) {
- sb.append("<div id='header'>\n");
- sb.append("<h1>");
- sb.append(title);
- sb.append("</h1>\n");
- sb.append("</div>");
- }
-
- private static void generateHTMLFileItem(String itemTitle, String itemContent) {
-
- }
-
- public static void main(String[] args) throws FileNotFoundException, IOException, FeedException {
+ public static void main(String[] args) throws FileNotFoundException, IOException, FeedException, ParseException {