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