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(Template template)
Sets the freemarker template to use.
|
public ChainingHtmlWriter(Collection<VCard> vcards)
vcards
- the vCards to writepublic ChainingHtmlWriter template(Template template)
template
- the template (defaults to an embedded template)public void go(OutputStream out) throws IOException
out
- the output stream to write toIOException
- if there's a problem writing to the output streampublic void go(Path file) throws IOException
file
- the file to write toIOException
- if there's a problem writing to the filepublic void go(Writer writer) throws IOException
writer
- the writer to write toIOException
- if there's a problem writing to the writerCopyright © 2012–2023 Michael Angstadt. All rights reserved.