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()
InputStream
read_boolean
in interface MarshalInputStream
read_boolean
in interface DataInputStream
read_boolean
in class InputStream
boolean
value read from this input streampublic final char read_char()
InputStream
read_char
in interface MarshalInputStream
read_char
in interface DataInputStream
read_char
in class InputStream
char
value read from this input streampublic final char read_wchar()
InputStream
read_wchar
in interface MarshalInputStream
read_wchar
in interface DataInputStream
read_wchar
in class InputStream
char
value read from this input streampublic final byte read_octet()
InputStream
read_octet
in interface MarshalInputStream
read_octet
in interface DataInputStream
read_octet
in class InputStream
byte
value read from this input streampublic final short read_short()
InputStream
read_short
in interface MarshalInputStream
read_short
in interface DataInputStream
read_short
in class InputStream
short
value read from this input streampublic final short read_ushort()
InputStream
read_ushort
in interface MarshalInputStream
read_ushort
in interface DataInputStream
read_ushort
in class InputStream
short
value read from this input streampublic final int read_long()
InputStream
read_long
in interface MarshalInputStream
read_long
in interface DataInputStream
read_long
in class InputStream
int
value read from this input streampublic final int read_ulong()
InputStream
read_ulong
in interface MarshalInputStream
read_ulong
in interface DataInputStream
read_ulong
in class InputStream
int
value read from this input streampublic final long read_longlong()
InputStream
read_longlong
in interface MarshalInputStream
read_longlong
in interface DataInputStream
read_longlong
in class InputStream
long
value read from this input streampublic final long read_ulonglong()
InputStream
read_ulonglong
in interface MarshalInputStream
read_ulonglong
in interface DataInputStream
read_ulonglong
in class InputStream
long
value read from this input streampublic final float read_float()
InputStream
read_float
in interface MarshalInputStream
read_float
in interface DataInputStream
read_float
in class InputStream
float
value read from this input streampublic final double read_double()
InputStream
read_double
in interface MarshalInputStream
read_double
in interface DataInputStream
read_double
in class InputStream
double
value read from this input streampublic final String read_string()
InputStream
read_string
in interface MarshalInputStream
read_string
in interface DataInputStream
read_string
in class InputStream
String
value read from this input streampublic final String read_wstring()
InputStream
read_wstring
in interface MarshalInputStream
read_wstring
in interface DataInputStream
read_wstring
in class InputStream
String
value read from this input streampublic final void read_boolean_array(boolean[] value, int offset, int length)
InputStream
read_boolean_array
in interface MarshalInputStream
read_boolean_array
in class InputStream
value
- 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)
InputStream
read_char_array
in interface MarshalInputStream
read_char_array
in class InputStream
value
- 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)
InputStream
read_wchar_array
in interface MarshalInputStream
read_wchar_array
in class InputStream
value
- 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)
InputStream
read_octet_array
in interface MarshalInputStream
read_octet_array
in class InputStream
value
- 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)
InputStream
read_short_array
in interface MarshalInputStream
read_short_array
in class InputStream
value
- 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)
InputStream
read_ushort_array
in interface MarshalInputStream
read_ushort_array
in class InputStream
value
- 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)
InputStream
read_long_array
in interface MarshalInputStream
read_long_array
in class InputStream
value
- 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)
InputStream
read_ulong_array
in interface MarshalInputStream
read_ulong_array
in class InputStream
value
- 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)
InputStream
read_longlong_array
in interface MarshalInputStream
read_longlong_array
in class InputStream
value
- 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)
InputStream
read_ulonglong_array
in interface MarshalInputStream
read_ulonglong_array
in class InputStream
value
- 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)
InputStream
read_float_array
in interface MarshalInputStream
read_float_array
in class InputStream
value
- 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)
InputStream
read_double_array
in interface MarshalInputStream
read_double_array
in class InputStream
value
- returned array of doubles.offset
- offset on the stream.length
- length of buffer to read.public final Object read_Object()
InputStream
read_Object
in interface MarshalInputStream
read_Object
in interface DataInputStream
read_Object
in class InputStream
Object
instance read from this input stream.public final TypeCode read_TypeCode()
InputStream
TypeCode
from this input stream.read_TypeCode
in interface MarshalInputStream
read_TypeCode
in interface DataInputStream
read_TypeCode
in class InputStream
TypeCode
instance read from this input stream.public final Any read_any()
InputStream
read_any
in interface MarshalInputStream
read_any
in interface DataInputStream
read_any
in class InputStream
Any
instance read from this input stream.public final Principal read_Principal()
InputStream
read_Principal
in interface MarshalInputStream
read_Principal
in class InputStream
public final int read() throws IOException
read
in class InputStream
IOException
portable
package comments for unimplemented featurespublic final BigDecimal read_fixed()
InputStream
read_fixed
in class InputStream
public final Context read_Context()
InputStream
read_Context
in class InputStream
portable
package comments for unimplemented featurespublic final Object read_Object(Class clz)
InputStream
read_Object
in interface MarshalInputStream
read_Object
in class InputStream
clz
- 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()
InputStream
orb
in class InputStream
ORB
object that created this streamportable
package comments for unimplemented featurespublic final Serializable read_value()
InputStream
read_value
in interface MarshalInputStream
read_value
in class InputStream
public final Serializable read_value(Class clz)
InputStream
read_value
in class InputStream
clz
- is the declared type of the value to be unmarshalledpublic final Serializable read_value(BoxedValueHelper factory)
InputStream
read_value
in class InputStream
factory
- is the instance fo the helper to be used for
unmarshalling the value typepublic final Serializable read_value(String rep_id)
InputStream
read_value
in class InputStream
rep_id
- identifies the type of the value to be unmarshalledpublic final Serializable read_value(Serializable value)
InputStream
read_value
in class InputStream
value
- 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()
InputStream
read_abstract_interface
in class InputStream
public final Object read_abstract_interface(Class clz)
InputStream
read_abstract_interface
in class InputStream
clz
- is the Class object for the stub class which corresponds to
the type that is statically expected.public final void consumeEndian()
consumeEndian
in interface MarshalInputStream
public final int getPosition()
getPosition
in interface MarshalInputStream
public final Object read_Abstract()
DataInputStream
read_Abstract
in interface DataInputStream
public final Serializable read_Value()
DataInputStream
read_Value
in interface DataInputStream
public final void read_any_array(AnySeqHolder seq, int offset, int length)
DataInputStream
read_any_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_boolean_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_char_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_wchar_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_octet_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_short_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_ushort_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_long_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_ulong_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_ulonglong_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_longlong_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_float_array
in interface DataInputStream
seq
- 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)
DataInputStream
read_double_array
in interface DataInputStream
seq
- 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 ValueBase
public final int read(byte[] b) throws IOException
read
in class InputStream
IOException
public final int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public final long skip(long n) throws IOException
skip
in class InputStream
IOException
public final int available() throws IOException
available
in class InputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public final void mark(int readlimit)
mark
in interface MarshalInputStream
mark
in class InputStream
public final void reset()
reset
in interface MarshalInputStream
reset
in class InputStream
public final boolean markSupported()
markSupported
in class InputStream
public 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 MarshalInputStream
public void resetCodeSetConverters()
resetCodeSetConverters
in interface MarshalInputStream
public void setMessageMediator(MessageMediator messageMediator)
public MessageMediator getMessageMediator()
public void start_value()
ValueInputStream
start_value
in interface ValueInputStream
public void end_value()
ValueInputStream
end_value
in interface ValueInputStream
Copyright © 2017 JBoss by Red Hat. All rights reserved.