All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vtence.molecule.decoration.PageCompositor Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
package com.vtence.molecule.decoration;

import java.io.IOException;
import java.io.Writer;

public class PageCompositor implements Decorator {

    private final ContentProcessor processor;
    private final Layout layout;

    public PageCompositor(ContentProcessor processor, Layout layout) {
        this.layout = layout;
        this.processor = processor;
    }

    public void decorate(Writer out, String content) throws IOException {
        layout.render(out, processor.process(content));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy