KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > sms > encoder > VCardFormatter


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.sms.encoder;
6
7 import org.exoplatform.services.communication.sms.common.ConvertException;
8 import org.exoplatform.services.communication.sms.common.OperationNotSupported;
9 import org.exoplatform.services.communication.sms.encoder.Formatter;
10 import org.exoplatform.services.communication.sms.encoder.MessageFormat;
11
12 /**
13  *
14  * @author: Ove Ranheim
15  * @email: oranheim@users.sourceforge.net
16  */

17 public class VCardFormatter implements Formatter {
18
19     private static Formatter _me;
20     
21     public VCardFormatter() {
22     }
23
24     public MessageFormat getFormat() {
25         return MessageFormat.VCARD;
26     }
27
28     public Object JavaDoc convert(Object JavaDoc object) throws ConvertException {
29         throw new OperationNotSupported("Not yet implemented!");
30     }
31
32     public static Formatter getInstance() {
33         if (_me == null) _me = new VCardFormatter();
34         return _me;
35     }
36 }
37
38
Popular Tags