net.wimpi.pim.contact.io.vcard
Class vCardMarshaller

java.lang.Object
  |
  +--net.wimpi.pim.contact.io.vcard.vCardMarshaller
All Implemented Interfaces:
ContactMarshaller

public class vCardMarshaller
extends java.lang.Object
implements ContactMarshaller

Class implementing a ContactMarshaller for the vCard Mime Directory format specification (see RFC 2426).

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger

Constructor Summary
vCardMarshaller()
           
vCardMarshaller(java.lang.String enc)
           
 
Method Summary
 java.lang.String getEncoding()
           
 void marshallContact(java.io.OutputStream out, Contact contact)
          Marshalls a contact to the given OutputStream.
 void marshallContacts(java.io.OutputStream out, Contact[] contacts)
          Marshalls a group of contacts to the given OutputStream.
 void setEncoding(java.lang.String encoding)
          Sets the encoding used by this ContactMarshaller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

vCardMarshaller

public vCardMarshaller()

vCardMarshaller

public vCardMarshaller(java.lang.String enc)
Method Detail

getEncoding

public java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)
Description copied from interface: ContactMarshaller
Sets the encoding used by this ContactMarshaller.

Specified by:
setEncoding in interface ContactMarshaller
Parameters:
encoding - the encoding as String.

marshallContact

public void marshallContact(java.io.OutputStream out,
                            Contact contact)
Description copied from interface: ContactMarshaller
Marshalls a contact to the given OutputStream.

Specified by:
marshallContact in interface ContactMarshaller
Parameters:
out - the OutputStream to write to.
contact - the Contact to be marshalled.

marshallContacts

public void marshallContacts(java.io.OutputStream out,
                             Contact[] contacts)
Description copied from interface: ContactMarshaller
Marshalls a group of contacts to the given OutputStream.

Specified by:
marshallContacts in interface ContactMarshaller
Parameters:
out - the OutputStream to write to.
contacts - the Contact[] to be marshalled.


Copyright © 2001-2003 jpim team.