1. /*
  2. * @(#)OutputStream.java 1.22 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA.portable;
  8. import org.omg.CORBA.TypeCode;
  9. import org.omg.CORBA.Principal;
  10. import org.omg.CORBA.Any;
  11. /**
  12. * OuputStream is the Java API for writing IDL types
  13. * to CDR marshal streams. These methods are used by the ORB to
  14. * marshal IDL types as well as to insert IDL types into Anys.
  15. * The <code>_array</code> versions of the methods can be directly
  16. * used to write sequences and arrays of IDL types.
  17. *
  18. * @version 1.13, 04/22/98
  19. * @since JDK1.2
  20. */
  21. public abstract class OutputStream extends java.io.OutputStream
  22. {
  23. public abstract InputStream create_input_stream();
  24. public abstract void write_boolean(boolean value);
  25. public abstract void write_char(char value);
  26. public abstract void write_wchar(char value);
  27. public abstract void write_octet(byte value);
  28. public abstract void write_short(short value);
  29. public abstract void write_ushort(short value);
  30. public abstract void write_long(int value);
  31. public abstract void write_ulong(int value);
  32. public abstract void write_longlong(long value);
  33. public abstract void write_ulonglong(long value);
  34. public abstract void write_float(float value);
  35. public abstract void write_double(double value);
  36. public abstract void write_string(String value);
  37. public abstract void write_wstring(String value);
  38. public abstract void write_boolean_array(boolean[] value, int offset,
  39. int length);
  40. public abstract void write_char_array(char[] value, int offset,
  41. int length);
  42. public abstract void write_wchar_array(char[] value, int offset,
  43. int length);
  44. public abstract void write_octet_array(byte[] value, int offset,
  45. int length);
  46. public abstract void write_short_array(short[] value, int offset,
  47. int length);
  48. public abstract void write_ushort_array(short[] value, int offset,
  49. int length);
  50. public abstract void write_long_array(int[] value, int offset,
  51. int length);
  52. public abstract void write_ulong_array(int[] value, int offset,
  53. int length);
  54. public abstract void write_longlong_array(long[] value, int offset,
  55. int length);
  56. public abstract void write_ulonglong_array(long[] value, int offset,
  57. int length);
  58. public abstract void write_float_array(float[] value, int offset,
  59. int length);
  60. public abstract void write_double_array(double[] value, int offset,
  61. int length);
  62. public abstract void write_Object(org.omg.CORBA.Object value);
  63. public abstract void write_TypeCode(TypeCode value);
  64. public abstract void write_any(Any value);
  65. /**
  66. * @deprecated Deprecated by CORBA 2.2.
  67. */
  68. public abstract void write_Principal(Principal value);
  69. /**
  70. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  71. * package comments for unimplemented features</a>
  72. */
  73. public void write(int b) throws java.io.IOException {
  74. throw new org.omg.CORBA.NO_IMPLEMENT();
  75. }
  76. /**
  77. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  78. * package comments for unimplemented features</a>
  79. */
  80. public void write_fixed(java.math.BigDecimal value) {
  81. throw new org.omg.CORBA.NO_IMPLEMENT();
  82. }
  83. /**
  84. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  85. * package comments for unimplemented features</a>
  86. */
  87. public void write_Context(org.omg.CORBA.Context ctx,
  88. org.omg.CORBA.ContextList contexts) {
  89. throw new org.omg.CORBA.NO_IMPLEMENT();
  90. }
  91. /**
  92. * Return the ORB that created this OutputStream
  93. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  94. * package comments for unimplemented features</a>
  95. */
  96. public org.omg.CORBA.ORB orb() {
  97. throw new org.omg.CORBA.NO_IMPLEMENT();
  98. }
  99. }