1 7 package org.jboss.remoting.marshall.dynamic.remote.socket; 8 9 import org.jboss.remoting.marshal.serializable.SerializableUnMarshaller; 10 import org.jboss.remoting.marshall.dynamic.remote.TestWrapper; 11 12 import java.io.IOException ; 13 import java.io.InputStream ; 14 import java.util.Map ; 15 16 19 public class TestUnMarshaller extends SerializableUnMarshaller 20 { 21 public final static String DATATYPE = "test"; 22 23 public Object read(InputStream inputStream, Map metadata) throws IOException , ClassNotFoundException 24 { 25 Object ret = super.read(inputStream, metadata); 26 ret = ((TestWrapper)ret).getPayload(); 27 return ret; 28 } 29 } | Popular Tags |