KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)IIOPOutputStream.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
11 public class IIOPOutputStream {
12     
13     /* Create a pending exception. This is needed to get around
14      * the fact that the *Delegate methods do not explicitly
15      * declare that they throw exceptions.
16      *
17      * This native method creates an exception of the given type with
18      * the given message string and posts it to the pending queue.
19      */

20     private static native void throwExceptionType(Class JavaDoc c, String JavaDoc message);
21
22     private static native Object JavaDoc getObjectFieldOpt(Object JavaDoc o, long fieldID);
23     private static native boolean getBooleanFieldOpt(Object JavaDoc o, long fieldID);
24     private static native byte getByteFieldOpt(Object JavaDoc o, long fieldID);
25     private static native char getCharFieldOpt(Object JavaDoc o, long fieldID);
26     private static native short getShortFieldOpt(Object JavaDoc o, long fieldID);
27     private static native int getIntFieldOpt(Object JavaDoc o, long fieldID);
28     private static native long getLongFieldOpt(Object JavaDoc o, long fieldID);
29     private static native float getFloatFieldOpt(Object JavaDoc o, long fieldID);
30     private static native double getDoubleFieldOpt(Object JavaDoc o, long fieldID);
31
32     private static native void writeObject(Object JavaDoc obj, Class JavaDoc asClass, Object JavaDoc oos) throws IllegalAccessException JavaDoc;
33 }
34
Popular Tags