KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Map > PointDefaultFactory


1 package Map;
2
3
4 /**
5  * <ul>
6  * <li> <b>IDL Source</b> "map.idl"
7  * <li> <b>IDL Name</b> ::Map::Point
8  * <li> <b>Repository Id</b> IDL:Map/Point:1.0
9  * </ul>
10  * <b>IDL definition:</b>
11  * <pre>
12  * valuetype Point {
13   ...
14 };
15  * </pre>
16  */

17 public class PointDefaultFactory
18     implements org.omg.CORBA.portable.ValueFactory JavaDoc
19 {
20     public java.io.Serializable JavaDoc read_value (org.omg.CORBA_2_3.portable.InputStream JavaDoc is)
21     {
22         int x = is.read_long();
23         int y = is.read_long();
24         String JavaDoc label = is.read_string();
25
26         java.io.Serializable JavaDoc val = new PointImpl(x,y,label);
27
28
29         // create and initialize value
30
// val = is.read_value( val );
31
return val;
32     }
33 }
34
Popular Tags