@Override public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) { Map<String, Object> treeMap = new TreeMap<String, Object>(attributes); String str = ""; Iterator<Map.Entry<String, Object>> it = treeMap.entrySet().iterator(); if (it.hasNext()) str += it.next().getValue(); while (it.hasNext()) { str += "," + it.next().getValue(); } reader.push_include(str, target, target, 1, attributes); }
@Override public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) { StringBuilder content = readContent(target); reader.push_include(content.toString(), target, target, 1, attributes); }
@Override public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) { StringBuilder content = readContent(target); reader.push_include(content.toString(), target, target, 1, attributes); }
@Override public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) { StringBuilder content = readContent(target); reader.push_include(content.toString(), target, target, 1, attributes); }
@Override public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) { StringBuilder content = readContent(target); reader.push_include(content.toString(), target, target, 1, attributes); }
@Override public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) { StringBuilder content = readContent(target); reader.push_include(content.toString(), target, target, 1, attributes); }
@Override public void process(Document document, // <3> PreprocessorReader reader, String target, Map<String, Object> attributes) { StringBuilder sb = new StringBuilder(); for (File f: new File(".").listFiles()) { sb.append(f.getName()).append("\n"); } reader.push_include( // <4> sb.toString(), target, new File(".").getAbsolutePath(), 1, attributes); } }