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. package com.sun.corba.se.internal.io;
  8. public class IIOPOutputStream {
  9. /* Create a pending exception. This is needed to get around
  10. * the fact that the *Delegate methods do not explicitly
  11. * declare that they throw exceptions.
  12. *
  13. * This native method creates an exception of the given type with
  14. * the given message string and posts it to the pending queue.
  15. */
  16. private static native void throwExceptionType(Class c, String message);
  17. private static native Object getObjectFieldOpt(Object o, long fieldID);
  18. private static native boolean getBooleanFieldOpt(Object o, long fieldID);
  19. private static native byte getByteFieldOpt(Object o, long fieldID);
  20. private static native char getCharFieldOpt(Object o, long fieldID);
  21. private static native short getShortFieldOpt(Object o, long fieldID);
  22. private static native int getIntFieldOpt(Object o, long fieldID);
  23. private static native long getLongFieldOpt(Object o, long fieldID);
  24. private static native float getFloatFieldOpt(Object o, long fieldID);
  25. private static native double getDoubleFieldOpt(Object o, long fieldID);
  26. private static native void writeObject(Object obj, Class asClass, Object oos) throws IllegalAccessException;
  27. }