KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > marshall > dynamic > local > TestUnMarshaller


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.remoting.marshall.dynamic.local;
8
9 import java.io.IOException JavaDoc;
10 import java.io.InputStream JavaDoc;
11 import java.util.Map JavaDoc;
12 import org.jboss.remoting.marshal.serializable.SerializableUnMarshaller;
13
14 /**
15  * @author <a HREF="mailto:tom.elrod@jboss.com">Tom Elrod</a>
16  */

17 public class TestUnMarshaller extends SerializableUnMarshaller
18 {
19    public final static String JavaDoc DATATYPE = "test";
20
21    public Object JavaDoc read(InputStream JavaDoc inputStream, Map JavaDoc metadata) throws IOException JavaDoc, ClassNotFoundException JavaDoc
22    {
23       Object JavaDoc ret = super.read(inputStream, metadata);
24       ret = ((TestWrapper) ret).getPayload();
25       return ret;
26    }
27 }
Popular Tags