Class VCardOutputter


  • public class VCardOutputter
    extends AbstractOutputter
    Generates vCard object data streams. $Id$ Created on: 29/12/2008
    • Constructor Detail

      • VCardOutputter

        public VCardOutputter()
      • VCardOutputter

        public VCardOutputter​(boolean validating)
        Parameters:
        validating - specifies whether to validate vCard objects prior to output
      • VCardOutputter

        public VCardOutputter​(boolean validating,
                              int foldLength)
        Parameters:
        validating - specifies whether to validate vCard objects prior to output
        foldLength - specifies the maximum line length
    • Method Detail

      • output

        public final void output​(VCard card,
                                 OutputStream out)
                          throws IOException,
                                 ValidationException
        Outputs an iCalender string to the specified output stream.
        Parameters:
        card - a vCard object to output as a string
        out - an output stream the output stream to write the vCard string to
        Throws:
        IOException - thrown when unable to write to output stream
        ValidationException - where the specified vCard is not valid
      • output

        public final void output​(VCard card,
                                 Writer out)
                          throws IOException,
                                 ValidationException
        Outputs an iCalender string to the specified writer.
        Parameters:
        card - a vCard object to output as a string
        out - a writer to write the output string to
        Throws:
        IOException - thrown when unable to write to writer
        ValidationException - where the specified vCard is not valid