net.sf.aguacate.document.json.JsonDocumentBuilder Maven / Gradle / Ivy
package net.sf.aguacate.document.json;
import java.io.IOException;
import java.io.Writer;
import net.sf.aguacate.document.DocumentBuilder;
import net.sf.aguacate.util.codec.bridge.CodecCoupling;
public class JsonDocumentBuilder implements DocumentBuilder {
@Override
public void build(Writer writer, Object object) throws IOException {
CodecCoupling.jsonCodecBridge().encode(writer, object);
}
@Override
public String getMimeType() {
return "application/json";
}
}