1 18 19 package sync4j.syncclient.spds; 20 21 import java.io.IOException ; 22 23 import sync4j.framework.tools.WBXMLTools; 24 25 38 39 public class WBXMLSyncMLClient 40 extends BaseSyncMLClient 41 implements SyncMLClient { 42 43 45 47 49 51 public String sendMessage(String msg) 52 throws IOException { 53 return sendMessage(msg, "UTF-8"); 54 } 55 56 public String sendMessage(String msg, String charSet) 58 throws IOException { 59 60 String value = null; 61 62 try { 63 value = WBXMLTools. 64 wbxmlToXml((sendMessage(WBXMLTools.toWBXML(msg))).getBytes()); 65 } catch (Exception e) { 66 throw new IOException (e.getMessage()); 67 } 68 69 return value; 70 71 } 72 73 } 74 | Popular Tags |