public class ChainingHtmlWriter extends Object
Ezvcard.writeHtml(Collection),
Ezvcard.writeHtml(VCard...)| Constructor and Description |
|---|
ChainingHtmlWriter(Collection<VCard> vcards) |
| Modifier and Type | Method and Description |
|---|---|
String |
go()
Writes the hCards to a string.
|
void |
go(OutputStream out)
Writes the hCards to an output stream.
|
void |
go(Path file)
Writes the hCards to a file.
|
void |
go(Writer writer)
Writes the hCards to a writer.
|
ChainingHtmlWriter |
template(freemarker.template.Template template)
Sets the freemarker template to use.
|
public ChainingHtmlWriter(Collection<VCard> vcards)
vcards - the vCards to writepublic ChainingHtmlWriter template(freemarker.template.Template template)
template - the template (defaults to an embedded template)public String go() throws freemarker.template.TemplateException
freemarker.template.TemplateException - if there's a problem processing the templatepublic void go(OutputStream out) throws IOException, freemarker.template.TemplateException
out - the output stream to write toIOException - if there's a problem writing to the output streamfreemarker.template.TemplateException - if there's a problem processing the templatepublic void go(Path file) throws IOException, freemarker.template.TemplateException
file - the file to write toIOException - if there's a problem writing to the filefreemarker.template.TemplateException - if there's a problem processing the templatepublic void go(Writer writer) throws IOException, freemarker.template.TemplateException
writer - the writer to write toIOException - if there's a problem writing to the writerfreemarker.template.TemplateException - if there's a problem processing the templateCopyright © 2012–2026 Michael Angstadt. All rights reserved.