1. /*
  2. * @(#)InputStream.java 1.21 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. * InputStream is the Java API for reading IDL types
  13. * from CDR marshal streams. These methods are used by the ORB to
  14. * unmarshal IDL types as well as to extract IDL types out of Anys.
  15. * The <code>_array</code> versions of the methods can be directly
  16. * used to read sequences and arrays of IDL types.
  17. *
  18. * @version 1.12, 04/22/98
  19. * @since JDK1.2
  20. */
  21. public abstract class InputStream extends java.io.InputStream
  22. {
  23. public abstract boolean read_boolean();
  24. public abstract char read_char();
  25. public abstract char read_wchar();
  26. public abstract byte read_octet();
  27. public abstract short read_short();
  28. public abstract short read_ushort();
  29. public abstract int read_long();
  30. public abstract int read_ulong();
  31. public abstract long read_longlong();
  32. public abstract long read_ulonglong();
  33. public abstract float read_float();
  34. public abstract double read_double();
  35. public abstract String read_string();
  36. public abstract String read_wstring();
  37. public abstract void read_boolean_array(boolean[] value, int offset, int length);
  38. public abstract void read_char_array(char[] value, int offset, int length);
  39. public abstract void read_wchar_array(char[] value, int offset, int length);
  40. public abstract void read_octet_array(byte[] value, int offset, int length);
  41. public abstract void read_short_array(short[] value, int offset, int length);
  42. public abstract void read_ushort_array(short[] value, int offset, int length);
  43. public abstract void read_long_array(int[] value, int offset, int length);
  44. public abstract void read_ulong_array(int[] value, int offset, int length);
  45. public abstract void read_longlong_array(long[] value, int offset, int length);
  46. public abstract void read_ulonglong_array(long[] value, int offset, int length);
  47. public abstract void read_float_array(float[] value, int offset, int length);
  48. public abstract void read_double_array(double[] value, int offset, int length);
  49. public abstract org.omg.CORBA.Object read_Object();
  50. public abstract TypeCode read_TypeCode();
  51. public abstract Any read_any();
  52. /**
  53. * @deprecated Deprecated by CORBA 2.2.
  54. */
  55. public abstract Principal read_Principal();
  56. /**
  57. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  58. * package comments for unimplemented features</a>
  59. */
  60. public int read() throws java.io.IOException {
  61. throw new org.omg.CORBA.NO_IMPLEMENT();
  62. }
  63. /**
  64. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  65. * package comments for unimplemented features</a>
  66. */
  67. public java.math.BigDecimal read_fixed() {
  68. throw new org.omg.CORBA.NO_IMPLEMENT();
  69. }
  70. /**
  71. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  72. * package comments for unimplemented features</a>
  73. */
  74. public org.omg.CORBA.Context read_Context() {
  75. throw new org.omg.CORBA.NO_IMPLEMENT();
  76. }
  77. /*
  78. * The following methods were added by orbos/98-04-03: Java to IDL
  79. * Mapping. These are used by RMI over IIOP.
  80. */
  81. /**
  82. * read_Object unmarshals an object and returns a CORBA Object
  83. * which is an instance of the class passed as its argument.
  84. * This class is the stub class of the expected type.
  85. *
  86. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  87. * package comments for unimplemented features</a>
  88. */
  89. public org.omg.CORBA.Object read_Object(java.lang.Class
  90. clz) {
  91. throw new org.omg.CORBA.NO_IMPLEMENT();
  92. }
  93. /**
  94. * Return the ORB that created this InputStream
  95. *
  96. * @see <a href="package-summary.html#unimpl"><code>portable</code>
  97. * package comments for unimplemented features</a>
  98. */
  99. public org.omg.CORBA.ORB orb() {
  100. throw new org.omg.CORBA.NO_IMPLEMENT();
  101. }
  102. }