net.wimpi.pim.contact.io
Interface ContactMarshaller

All Known Implementing Classes:
vCardMarshaller

public interface ContactMarshaller

Interface modeling a ContactMarshaller.

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

Method Summary
 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 enc)
          Sets the encoding used by this ContactMarshaller.
 

Method Detail

setEncoding

public void setEncoding(java.lang.String enc)
Sets the encoding used by this ContactMarshaller.

Parameters:
enc - the encoding as String.

marshallContact

public void marshallContact(java.io.OutputStream out,
                            Contact contact)
Marshalls a contact to the given OutputStream.

Parameters:
out - the OutputStream to write to.
contact - the Contact to be marshalled.

marshallContacts

public void marshallContacts(java.io.OutputStream out,
                             Contact[] contacts)
Marshalls a group of contacts to the given OutputStream.

Parameters:
out - the OutputStream to write to.
contacts - the Contact[] to be marshalled.


Copyright © 2001-2003 jpim team.