KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > internal > io > IIOPInputStream


1 /*
2  * @(#)IIOPInputStream.java 1.2 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.internal.io;
9
10 public class IIOPInputStream {
11     private static native Object JavaDoc allocateNewObject(Class JavaDoc aclass,
12                                                    Class JavaDoc initclass)
13         throws InstantiationException JavaDoc, IllegalAccessException JavaDoc;
14     /* Create a pending exception. This is needed to get around
15      * the fact that the *Delegate methods do not explicitly
16      * declare that they throw exceptions.
17      *
18      * This native methods creates an exception of the given type with
19      * the given message string and posts it to the pending queue.
20      */

21     private static native void throwExceptionType(Class JavaDoc c, String JavaDoc message);
22
23     /* The following native methods of the form set*Field are used
24      * to set private, protected, and package private fields
25      * of an Object.
26      */

27     private static native void setObjectField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, Object JavaDoc v);
28     private static native void setBooleanField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, boolean v);
29     private static native void setByteField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, byte v);
30     private static native void setCharField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, char v);
31     private static native void setShortField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, short v);
32     private static native void setIntField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, int v);
33     private static native void setLongField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, long v);
34     private static native void setFloatField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, float v);
35     private static native void setDoubleField(Object JavaDoc o, Class JavaDoc c, String JavaDoc fieldName, String JavaDoc fieldSig, double v);
36     private static native void readObject(Object JavaDoc obj, Class JavaDoc asClass, Object JavaDoc ois);
37
38     private static native void setObjectFieldOpt(Object JavaDoc o, long fieldID, Object JavaDoc v);
39     private static native void setBooleanFieldOpt(Object JavaDoc o, long fieldID, boolean v);
40     private static native void setByteFieldOpt(Object JavaDoc o, long fieldID, byte v);
41     private static native void setCharFieldOpt(Object JavaDoc o, long fieldID, char v);
42     private static native void setShortFieldOpt(Object JavaDoc o, long fieldID, short v);
43     private static native void setIntFieldOpt(Object JavaDoc o, long fieldID, int v);
44     private static native void setLongFieldOpt(Object JavaDoc o, long fieldID, long v);
45
46     private static native void setFloatFieldOpt(Object JavaDoc o, long fieldID, float v);
47     private static native void setDoubleFieldOpt(Object JavaDoc o, long fieldID, double v);
48 }
49
Popular Tags