1 34 35 package com.micronova.util.codec; 36 37 import java.util.*; 38 import com.micronova.util.*; 39 import org.w3c.dom.*; 40 41 42 43 public class CodecNodeMap extends Codec 44 { 45 46 47 public static final Object encode(Object object) 48 { 49 if (object != null) 50 { 51 object = XMLUtil.encodeNodeMap((Node)object); 52 } 53 54 return object; 55 } 56 57 58 59 public static final Object decode(Object object, Object control) throws Exception 60 { 61 if (object != null) 62 { 63 object = XMLUtil.decodeNodeMap(object, control); 64 } 65 66 return object; 67 } 68 69 public static final Object decode(Object object) throws Exception 70 { 71 return decode(object, null); 72 } 73 } 74 75 | Popular Tags |