public abstract class CDRInputStream extends InputStream implements MarshalInputStream, DataInputStream, ValueInputStream
| Modifier and Type | Field and Description |
|---|---|
protected CorbaMessageMediator |
messageMediator |
| Constructor and Description |
|---|
CDRInputStream() |
CDRInputStream(CDRInputStream is) |
CDRInputStream(ORB orb,
ByteBuffer byteBuffer,
int size,
boolean littleEndian,
GIOPVersion version,
byte encodingVersion,
BufferManagerRead bufMgr) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
_truncatable_ids()
Provides truncatable repository ids.
|
void |
alignOnBoundary(int octetBoundary)
Aligns the current position on the given octet boundary
if there are enough bytes available to do so.
|
int |
available() |
void |
close() |
void |
consumeEndian() |
protected CodeSetConversion.BTCConverter |
createCharBTCConverter() |
protected abstract CodeSetConversion.BTCConverter |
createWCharBTCConverter() |
abstract CDRInputStream |
dup() |
void |
end_value()
The end_value method reads the end tag
for the nested custom valuetype (after
skipping any data that precedes the end
tag) and decrements the valuetype nesting
depth.
|
int |
getBufferLength() |
BufferManagerRead |
getBufferManager() |
protected ByteBuffer |
getByteBuffer() |
CodeBase |
getCodeBase() |
GIOPVersion |
getGIOPVersion() |
protected int |
getIndex() |
MessageMediator |
getMessageMediator() |
int |
getPosition() |
boolean |
isLittleEndian() |
protected boolean |
isSharing(ByteBuffer bb)
return true if our ByteBuffer is sharing/equal to bb
|
void |
mark(int readlimit) |
boolean |
markSupported() |
ORB |
orb()
Returns the ORB that created this InputStream.
|
void |
orb(ORB orb) |
void |
performORBVersionSpecificInit()
This must be called after determining the proper ORB version,
and setting it on the stream's ORB instance.
|
Object |
read_abstract_interface()
Unmarshal the value object or a suitable stub object.
|
Object |
read_abstract_interface(Class clz)
Unmarshal the class object or the stub class corresponding to the passed type.
|
Object |
read_Abstract()
Reads an IDL Abstract interface from the input stream.
|
void |
read_any_array(AnySeqHolder seq,
int offset,
int length)
Reads array of IDL Anys from offset for length elements from the
input stream.
|
Any |
read_any()
Reads an Any from this input stream.
|
void |
read_boolean_array(boolean[] value,
int offset,
int length)
Reads an array of booleans from this input stream.
|
void |
read_boolean_array(BooleanSeqHolder seq,
int offset,
int length)
Reads array of IDL booleans from offset for length elements from the
input stream.
|
boolean |
read_boolean()
Reads a boolean value from this input stream.
|
void |
read_char_array(char[] value,
int offset,
int length)
Reads an array of chars from this input stream.
|
void |
read_char_array(CharSeqHolder seq,
int offset,
int length)
Reads array of IDL characters from offset for length elements from the
input stream.
|
char |
read_char()
Reads a char value from this input stream.
|
Context |
read_Context()
Reads a CORBA context from the stream.
|
void |
read_double_array(double[] value,
int offset,
int length)
Reads an array of doubles from this input stream.
|
void |
read_double_array(DoubleSeqHolder seq,
int offset,
int length)
Reads array of IDL doubles from offset for length elements from the
input stream.
|
double |
read_double()
Reads a double value from this input stream.
|
BigDecimal |
read_fixed()
Reads a BigDecimal number.
|
BigDecimal |
read_fixed(short digits,
short scale) |
void |
read_float_array(float[] value,
int offset,
int length)
Reads an array of floats from this input stream.
|
void |
read_float_array(FloatSeqHolder seq,
int offset,
int length)
Reads array of IDL floats from offset for length elements from the
input stream.
|
float |
read_float()
Reads a float value from this input stream.
|
void |
read_long_array(int[] value,
int offset,
int length)
Reads an array of CORBA longs (that is, Java ints) from this input stream.
|
void |
read_long_array(LongSeqHolder seq,
int offset,
int length)
Reads array of IDL longs from offset for length elements from the
input stream.
|
int |
read_long()
Reads a CORBA long (that is, Java int) value from this input stream.
|
void |
read_longlong_array(long[] value,
int offset,
int length)
Reads an array of CORBA longlongs (that is, Java longs) from this input
stream.
|
void |
read_longlong_array(LongLongSeqHolder seq,
int offset,
int length)
Reads array of IDL long longs from offset for length elements from the
input stream.
|
long |
read_longlong()
Reads a CORBA longlong (that is, Java long) value from this input stream.
|
Object |
read_Object()
Reads a CORBA object from this input stream.
|
Object |
read_Object(Class clz)
Unmarshals an object and returns a CORBA Object,
which is an instance of the class passed as its argument.
|
void |
read_octet_array(byte[] value,
int offset,
int length)
Reads an array of octets (that is, bytes) from this input stream.
|
void |
read_octet_array(OctetSeqHolder seq,
int offset,
int length)
Reads array of IDL octets from offset for length elements from the
input stream.
|
byte |
read_octet()
Reads an octet (that is, a byte) value from this input stream.
|
Principal |
read_Principal()
Returns principal for invocation.
|
void |
read_short_array(short[] value,
int offset,
int length)
Reads an array of shorts from this input stream.
|
void |
read_short_array(ShortSeqHolder seq,
int offset,
int length)
Reads array of IDL shorts from offset for length elements from the
input stream.
|
short |
read_short()
Reads a short value from this input stream.
|
String |
read_string()
Reads a string value from this input stream.
|
TypeCode |
read_TypeCode()
Reads a
TypeCode from this input stream. |
void |
read_ulong_array(int[] value,
int offset,
int length)
Reads an array of unsigned CORBA longs (that is, Java ints) from this input
stream.
|
void |
read_ulong_array(ULongSeqHolder seq,
int offset,
int length)
Reads array of IDL unsigned longs from offset for length elements from the
input stream.
|
int |
read_ulong()
Reads an unsigned CORBA long (that is, Java int) value from this input
stream.
|
void |
read_ulonglong_array(long[] value,
int offset,
int length)
Reads an array of unsigned CORBA longlongs (that is, Java longs) from this
input stream.
|
void |
read_ulonglong_array(ULongLongSeqHolder seq,
int offset,
int length)
Reads array of IDL unsigned long longs from offset for length elements from the
input stream.
|
long |
read_ulonglong()
Reads a CORBA unsigned longlong (that is, Java long) value from this input
stream.
|
void |
read_ushort_array(short[] value,
int offset,
int length)
Reads an array of unsigned shorts from this input stream.
|
void |
read_ushort_array(UShortSeqHolder seq,
int offset,
int length)
Reads array of IDL unsigned shorts from offset for length elements from the
input stream.
|
short |
read_ushort()
Reads a unsigned short value from this input stream.
|
Serializable |
read_value()
Unmarshalls a value type from the input stream.
|
Serializable |
read_Value()
Reads an IDL value type from the input stream.
|
Serializable |
read_value(BoxedValueHelper factory)
Unmarshalls a value type from the input stream.
|
Serializable |
read_value(Class clz)
Unmarshalls a value type from the input stream.
|
Serializable |
read_value(Serializable value)
Unmarshalls a value type from the input stream.
|
Serializable |
read_value(String rep_id)
Unmarshalls a value type from the input stream.
|
void |
read_wchar_array(char[] value,
int offset,
int length)
Reads an array of wide chars from this input stream.
|
void |
read_wchar_array(WCharSeqHolder seq,
int offset,
int length)
Reads array of IDL wide characters from offset for length elements from the
input stream.
|
char |
read_wchar()
Reads a wide char value from this input stream.
|
String |
read_wstring()
Reads a wide string value from this input stream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
resetCodeSetConverters()
Resets any internal references to code set converters.
|
protected void |
setBufferLength(int value) |
protected void |
setByteBuffer(ByteBuffer byteBuffer) |
protected void |
setByteBufferWithInfo(ByteBufferWithInfo bbwi) |
void |
setHeaderPadding(boolean headerPadding) |
protected void |
setIndex(int value) |
void |
setMessageMediator(MessageMediator messageMediator) |
long |
skip(long n) |
void |
start_value()
The start_value method reads a valuetype
header for a nested custom valuetype and
increments the valuetype nesting depth.
|
protected CorbaMessageMediator messageMediator
public CDRInputStream()
public CDRInputStream(CDRInputStream is)
public CDRInputStream(ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, GIOPVersion version, byte encodingVersion, BufferManagerRead bufMgr)
public final boolean read_boolean()
InputStreamread_boolean in interface MarshalInputStreamread_boolean in interface DataInputStreamread_boolean in class InputStreamboolean value read from this input streampublic final char read_char()
InputStreamread_char in interface MarshalInputStreamread_char in interface DataInputStreamread_char in class InputStreamchar value read from this input streampublic final char read_wchar()
InputStreamread_wchar in interface MarshalInputStreamread_wchar in interface DataInputStreamread_wchar in class InputStreamchar value read from this input streampublic final byte read_octet()
InputStreamread_octet in interface MarshalInputStreamread_octet in interface DataInputStreamread_octet in class InputStreambyte value read from this input streampublic final short read_short()
InputStreamread_short in interface MarshalInputStreamread_short in interface DataInputStreamread_short in class InputStreamshort value read from this input streampublic final short read_ushort()
InputStreamread_ushort in interface MarshalInputStreamread_ushort in interface DataInputStreamread_ushort in class InputStreamshort value read from this input streampublic final int read_long()
InputStreamread_long in interface MarshalInputStreamread_long in interface DataInputStreamread_long in class InputStreamint value read from this input streampublic final int read_ulong()
InputStreamread_ulong in interface MarshalInputStreamread_ulong in interface DataInputStreamread_ulong in class InputStreamint value read from this input streampublic final long read_longlong()
InputStreamread_longlong in interface MarshalInputStreamread_longlong in interface DataInputStreamread_longlong in class InputStreamlong value read from this input streampublic final long read_ulonglong()
InputStreamread_ulonglong in interface MarshalInputStreamread_ulonglong in interface DataInputStreamread_ulonglong in class InputStreamlong value read from this input streampublic final float read_float()
InputStreamread_float in interface MarshalInputStreamread_float in interface DataInputStreamread_float in class InputStreamfloat value read from this input streampublic final double read_double()
InputStreamread_double in interface MarshalInputStreamread_double in interface DataInputStreamread_double in class InputStreamdouble value read from this input streampublic final String read_string()
InputStreamread_string in interface MarshalInputStreamread_string in interface DataInputStreamread_string in class InputStreamString value read from this input streampublic final String read_wstring()
InputStreamread_wstring in interface MarshalInputStreamread_wstring in interface DataInputStreamread_wstring in class InputStreamString value read from this input streampublic final void read_boolean_array(boolean[] value,
int offset,
int length)
InputStreamread_boolean_array in interface MarshalInputStreamread_boolean_array in class InputStreamvalue - returned array of booleans.offset - offset on the stream.length - length of buffer to read.public final void read_char_array(char[] value,
int offset,
int length)
InputStreamread_char_array in interface MarshalInputStreamread_char_array in class InputStreamvalue - returned array of chars.offset - offset on the stream.length - length of buffer to read.public final void read_wchar_array(char[] value,
int offset,
int length)
InputStreamread_wchar_array in interface MarshalInputStreamread_wchar_array in class InputStreamvalue - returned array of wide chars.offset - offset on the stream.length - length of buffer to read.public final void read_octet_array(byte[] value,
int offset,
int length)
InputStreamread_octet_array in interface MarshalInputStreamread_octet_array in class InputStreamvalue - returned array of octets (that is, bytes).offset - offset on the stream.length - length of buffer to read.public final void read_short_array(short[] value,
int offset,
int length)
InputStreamread_short_array in interface MarshalInputStreamread_short_array in class InputStreamvalue - returned array of shorts.offset - offset on the stream.length - length of buffer to read.public final void read_ushort_array(short[] value,
int offset,
int length)
InputStreamread_ushort_array in interface MarshalInputStreamread_ushort_array in class InputStreamvalue - returned array of shorts.offset - offset on the stream.length - length of buffer to read.public final void read_long_array(int[] value,
int offset,
int length)
InputStreamread_long_array in interface MarshalInputStreamread_long_array in class InputStreamvalue - returned array of CORBA longs (that is, Java ints).offset - offset on the stream.length - length of buffer to read.public final void read_ulong_array(int[] value,
int offset,
int length)
InputStreamread_ulong_array in interface MarshalInputStreamread_ulong_array in class InputStreamvalue - returned array of CORBA longs (that is, Java ints).offset - offset on the stream.length - length of buffer to read.public final void read_longlong_array(long[] value,
int offset,
int length)
InputStreamread_longlong_array in interface MarshalInputStreamread_longlong_array in class InputStreamvalue - returned array of CORBA longs (that is, Java longs).offset - offset on the stream.length - length of buffer to read.public final void read_ulonglong_array(long[] value,
int offset,
int length)
InputStreamread_ulonglong_array in interface MarshalInputStreamread_ulonglong_array in class InputStreamvalue - returned array of CORBA longs (that is, Java longs).offset - offset on the stream.length - length of buffer to read.public final void read_float_array(float[] value,
int offset,
int length)
InputStreamread_float_array in interface MarshalInputStreamread_float_array in class InputStreamvalue - returned array of floats.offset - offset on the stream.length - length of buffer to read.public final void read_double_array(double[] value,
int offset,
int length)
InputStreamread_double_array in interface MarshalInputStreamread_double_array in class InputStreamvalue - returned array of doubles.offset - offset on the stream.length - length of buffer to read.public final Object read_Object()
InputStreamread_Object in interface MarshalInputStreamread_Object in interface DataInputStreamread_Object in class InputStreamObject instance read from this input stream.public final TypeCode read_TypeCode()
InputStreamTypeCode from this input stream.read_TypeCode in interface MarshalInputStreamread_TypeCode in interface DataInputStreamread_TypeCode in class InputStreamTypeCode instance read from this input stream.public final Any read_any()
InputStreamread_any in interface MarshalInputStreamread_any in interface DataInputStreamread_any in class InputStreamAny instance read from this input stream.public final Principal read_Principal()
InputStreamread_Principal in interface MarshalInputStreamread_Principal in class InputStreampublic final int read()
throws IOException
read in class InputStreamIOExceptionportable
package comments for unimplemented featurespublic final BigDecimal read_fixed()
InputStreamread_fixed in class InputStreampublic final Context read_Context()
InputStreamread_Context in class InputStreamportable
package comments for unimplemented featurespublic final Object read_Object(Class clz)
InputStreamread_Object in interface MarshalInputStreamread_Object in class InputStreamclz - The Class object for the stub class which
corresponds to the type that is statistically expected, or
the Class object for the RMI/IDL interface type that
is statistically expected.portable
package comments for unimplemented featurespublic final ORB orb()
InputStreamorb in class InputStreamORB object that created this streamportable
package comments for unimplemented featurespublic final Serializable read_value()
InputStreamread_value in interface MarshalInputStreamread_value in class InputStreampublic final Serializable read_value(Class clz)
InputStreamread_value in class InputStreamclz - is the declared type of the value to be unmarshalledpublic final Serializable read_value(BoxedValueHelper factory)
InputStreamread_value in class InputStreamfactory - is the instance fo the helper to be used for
unmarshalling the value typepublic final Serializable read_value(String rep_id)
InputStreamread_value in class InputStreamrep_id - identifies the type of the value to be unmarshalledpublic final Serializable read_value(Serializable value)
InputStreamread_value in class InputStreamvalue - is an uninitialized value which is added to the orb's
indirection table before calling Streamable._read() or
CustomMarshal.unmarshal() to unmarshal the value.public final Object read_abstract_interface()
InputStreamread_abstract_interface in class InputStreampublic final Object read_abstract_interface(Class clz)
InputStreamread_abstract_interface in class InputStreamclz - is the Class object for the stub class which corresponds to
the type that is statically expected.public final void consumeEndian()
consumeEndian in interface MarshalInputStreampublic final int getPosition()
getPosition in interface MarshalInputStreampublic final Object read_Abstract()
DataInputStreamread_Abstract in interface DataInputStreampublic final Serializable read_Value()
DataInputStreamread_Value in interface DataInputStreampublic final void read_any_array(AnySeqHolder seq, int offset, int length)
DataInputStreamread_any_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_boolean_array(BooleanSeqHolder seq, int offset, int length)
DataInputStreamread_boolean_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_char_array(CharSeqHolder seq, int offset, int length)
DataInputStreamread_char_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_wchar_array(WCharSeqHolder seq, int offset, int length)
DataInputStreamread_wchar_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_octet_array(OctetSeqHolder seq, int offset, int length)
DataInputStreamread_octet_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_short_array(ShortSeqHolder seq, int offset, int length)
DataInputStreamread_short_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_ushort_array(UShortSeqHolder seq, int offset, int length)
DataInputStreamread_ushort_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_long_array(LongSeqHolder seq, int offset, int length)
DataInputStreamread_long_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_ulong_array(ULongSeqHolder seq, int offset, int length)
DataInputStreamread_ulong_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_ulonglong_array(ULongLongSeqHolder seq, int offset, int length)
DataInputStreamread_ulonglong_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_longlong_array(LongLongSeqHolder seq, int offset, int length)
DataInputStreamread_longlong_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_float_array(FloatSeqHolder seq, int offset, int length)
DataInputStreamread_float_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final void read_double_array(DoubleSeqHolder seq, int offset, int length)
DataInputStreamread_double_array in interface DataInputStreamseq - The out parameter holder for the array to be read.offset - The index into seq of the first element to read from the
input stream.length - The number of elements to read from the input stream.public final String[] _truncatable_ids()
ValueBase_truncatable_ids in interface ValueBasepublic final int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic final int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic final long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic final int available()
throws IOException
available in class InputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic final void mark(int readlimit)
mark in interface MarshalInputStreammark in class InputStreampublic final void reset()
reset in interface MarshalInputStreamreset in class InputStreampublic final boolean markSupported()
markSupported in class InputStreampublic abstract CDRInputStream dup()
public final BigDecimal read_fixed(short digits, short scale)
public final boolean isLittleEndian()
protected final ByteBuffer getByteBuffer()
protected final void setByteBuffer(ByteBuffer byteBuffer)
protected final void setByteBufferWithInfo(ByteBufferWithInfo bbwi)
protected final boolean isSharing(ByteBuffer bb)
public final int getBufferLength()
protected final void setBufferLength(int value)
protected final int getIndex()
protected final void setIndex(int value)
public final void orb(ORB orb)
public final GIOPVersion getGIOPVersion()
public final BufferManagerRead getBufferManager()
public CodeBase getCodeBase()
protected CodeSetConversion.BTCConverter createCharBTCConverter()
protected abstract CodeSetConversion.BTCConverter createWCharBTCConverter()
public void alignOnBoundary(int octetBoundary)
public void setHeaderPadding(boolean headerPadding)
public void performORBVersionSpecificInit()
performORBVersionSpecificInit in interface MarshalInputStreampublic void resetCodeSetConverters()
resetCodeSetConverters in interface MarshalInputStreampublic void setMessageMediator(MessageMediator messageMediator)
public MessageMediator getMessageMediator()
public void start_value()
ValueInputStreamstart_value in interface ValueInputStreampublic void end_value()
ValueInputStreamend_value in interface ValueInputStreamCopyright © 2018 JBoss by Red Hat. All rights reserved.