ezvcard
Class Ezvcard.WriterChainHtml

java.lang.Object
  extended by ezvcard.Ezvcard.WriterChainHtml
Enclosing class:
Ezvcard

public static class Ezvcard.WriterChainHtml
extends Object

Convenience chainer class for writing HTML vCards (hCard).


Method Summary
 String go()
          Writes the hCards to a string.
 void go(File file)
          Writes the hCards to a file.
 void go(OutputStream out)
          Writes the hCards to an output stream.
 void go(Writer writer)
          Writes the hCards to a writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

go

public String go()
          throws TemplateException
Writes the hCards to a string.

Returns:
the HTML page
Throws:
TemplateException - if there's a problem with the freemarker template

go

public void go(OutputStream out)
        throws IOException,
               TemplateException
Writes the hCards to an output stream.

Parameters:
out - the output stream to write to
Throws:
IOException - if there's a problem writing to the output stream
TemplateException - if there's a problem with the freemarker template

go

public void go(File file)
        throws IOException,
               TemplateException
Writes the hCards to a file.

Parameters:
file - the file to write to
Throws:
IOException - if there's a problem writing to the file
TemplateException - if there's a problem with the freemarker template

go

public void go(Writer writer)
        throws IOException,
               TemplateException
Writes the hCards to a writer.

Parameters:
writer - the writer to write to
Throws:
IOException - if there's a problem writing to the writer
TemplateException - if there's a problem with the freemarker template


Copyright © 2012-2013. All Rights Reserved.