java.lang.Objectjava.io.InputStream
org.omg.CORBA.portable.InputStream
public abstract class InputStream
InputStream 是用来从 CDR 编组流中读取 IDL 类型的 Java API。这些方法供 ORB 用来解组 IDL 类型以及从 Any 中析取 IDL。_array 形式的方法可以直接用来读取 IDL 类型的序列和数组。
| 构造方法摘要 | |
|---|---|
InputStream() |
|
| 方法摘要 | |
|---|---|
ORB |
orb() 返回创建此 InputStream 的 ORB。 |
abstract Any |
read_any() 从此输入流中读取一个 Any。 |
abstract void |
read_boolean_array(boolean[] value, int offset, int length) 从此输入流中读取一个 boolean 数组。 |
abstract boolean |
read_boolean() 从此输入流中读取一个 boolean 值。 |
abstract void |
read_char_array(char[] value, int offset, int length) 从此输入流中读取一个 char 数组。 |
abstract char |
read_char() 从此输入流中读取一个 char 值。 |
Context |
read_Context() 从流中读取一个 CORBA 上下文。 |
abstract void |
read_double_array(double[] value, int offset, int length) 从此输入流中读取一个 double 数组。 |
abstract double |
read_double() 从此输入流中读取一个 double 值。 |
BigDecimal |
read_fixed() 读取一个 BigDecimal 数。 |
abstract void |
read_float_array(float[] value, int offset, int length) 从此输入流中读取一个 float 数组。 |
abstract float |
read_float() 从此输入流中读取一个 float 值。 |
abstract void |
read_long_array(int[] value, int offset, int length) 从此输入流中读取一个 CORBA long(即 Java int)数组。 |
abstract int |
read_long() 从此输入流中读取一个 CORBA long(即 Java int)值。 |
abstract void |
read_longlong_array(long[] value, int offset, int length) 从此输入流中读取一个 CORBA longlong(即 Java long)数组。 |
abstract long |
read_longlong() 从此输入流中读取一个 CORBA longlong(即 Java long)值。 |
abstract Object |
read_Object() 从此输入流中读取一个 CORBA 对象。 |
Object |
read_Object(Class clz) 取消对象的编组并返回一个 CORBA Object,该对象是作为参数传递的类的实例。 |
abstract void |
read_octet_array(byte[] value, int offset, int length) 从此输入流中读取一个八位组(即 bytes)数组。 |
abstract byte |
read_octet() 从此输入流中读取一个八位组(即 byte)值。 |
Principal |
read_Principal() 已过时。 已由 CORBA 2.2 取代。 |
abstract void |
read_short_array(short[] value, int offset, int length) 从此输入流中读取一个 short 数组。 |
abstract short |
read_short() 从此输入流中读取一个 short 值。 |
abstract String |
read_string() 从此输入流中读取一个 string 值。 |
abstract TypeCode |
read_TypeCode() 从此输入流中读取一个 TypeCode。 |
abstract void |
read_ulong_array(int[] value, int offset, int length) 从此输入流中读取一个无符号 CORBA long(即 Java int)数组。 |
abstract int |
read_ulong() 从此输入流中读取一个无符号 CORBA long(即 Java int)值。 |
abstract void |
read_ulonglong_array(long[] value, int offset, int length) 从此输入流中读取一个无符号 CORBA longlong(即 Java long)数组。 |
abstract long |
read_ulonglong() 从此输入流中读取一个 CORBA 无符号 longlong(即 Java long)值。 |
abstract void |
read_ushort_array(short[] value, int offset, int length) 从此输入流中读取一个无符号 short 数组。 |
abstract short |
read_ushort() 从此输入流中读取一个无符号 short 值。 |
abstract void |
read_wchar_array(char[] value, int offset, int length) 从此输入流中读取一个 wide char 数组。 |
abstract char |
read_wchar() 从此输入流中读取一个 wide char 值。 |
abstract String |
read_wstring() 从此输入流中读取一个 wide string 值。 |
int |
read() 从输入流中读取数据的下一个字节。 |
| 从类 java.io.InputStream 继承的方法 |
|---|
available, close, mark, markSupported, read, read, reset, skip |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public InputStream()
| 方法详细信息 |
|---|
public abstract boolean read_boolean()
boolean 值。
public abstract char read_char()
char 值。
public abstract char read_wchar()
char 值。
public abstract byte read_octet()
byte 值。
public abstract short read_short()
short 值。
public abstract short read_ushort()
short 值。
public abstract int read_long()
int 值。
public abstract int read_ulong()
int 值。
public abstract long read_longlong()
long 值。
public abstract long read_ulonglong()
long 值。
public abstract float read_float()
float 值。
public abstract double read_double()
double 值。
public abstract String read_string()
String 值。
public abstract String read_wstring()
String 值。
public abstract void read_boolean_array(boolean[] value,
int offset,
int length)
value - 返回的 boolean 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_char_array(char[] value,
int offset,
int length)
value - 返回的 char 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_wchar_array(char[] value,
int offset,
int length)
value - 返回的 wide char 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_octet_array(byte[] value,
int offset,
int length)
value - 返回的八位组(即 byte)数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_short_array(short[] value,
int offset,
int length)
value - 返回的 short 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_ushort_array(short[] value,
int offset,
int length)
value - 返回的 short 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_long_array(int[] value,
int offset,
int length)
value - 返回的 CORBA long(即 Java int)数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_ulong_array(int[] value,
int offset,
int length)
value - 返回的 CORBA long(即 Java int)数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_longlong_array(long[] value,
int offset,
int length)
value - 返回的 CORBA long(即 Java long)数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_ulonglong_array(long[] value,
int offset,
int length)
value - 返回的 CORBA long(即 Java long)数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_float_array(float[] value,
int offset,
int length)
value - 返回的 float 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract void read_double_array(double[] value,
int offset,
int length)
value - 返回的 double 数组。
offset - 流中的偏移量。
length - 要读取的缓冲区长度。
public abstract Object read_Object()
Object 实例。
public abstract TypeCode read_TypeCode()
TypeCode。
TypeCode 实例。
public abstract Any read_any()
Any 实例。
@Deprecated public Principal read_Principal()
public int read()
throws IOException
InputStream 复制的描述
0 到
255 范围内的
int 字节值。如果因为已经到达流末尾而没有可用的字节,则返回值
-1。在输入数据可用、检测到流末尾或者抛出异常前,此方法一直阻塞。
子类必须提供此方法的一个实现。
InputStream 中的
read
-1。
IOException - 如果发生 I/O 错误。
portable 包中有关未实现特性的注释
public BigDecimal read_fixed()
public Context read_Context()
portable 包中有关未实现特性的注释
public Object read_Object(Class clz)
clz - 与能肯定预期类型相对应的 stub 类的 Class 对象,或能肯定预期的 RMI/IDL 接口类型的 Class 对象。
portable 包中有关未实现特性的注释
public ORB orb()
ORB 对象
portable 包中有关未实现特性的注释