public final class CDREncapsCodec extends LocalObject implements Codec
Constructor and Description |
---|
CDREncapsCodec(ORB orb,
int major,
int minor)
Creates a new codec implementation.
|
Modifier and Type | Method and Description |
---|---|
Any |
decode_value(byte[] data,
TypeCode tc)
Decode the given octet sequence into an any based on a CDR
encapsulated octet sequence.
|
Any |
decode(byte[] data)
Decode the given octet sequence into an any based on a CDR
encapsulated octet sequence.
|
byte[] |
encode_value(Any data)
Convert the given any into a CDR encapsulated octet sequence.
|
byte[] |
encode(Any data)
Convert the given any into a CDR encapsulated octet sequence
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
public CDREncapsCodec(ORB orb, int major, int minor)
orb
- The ORB to use to create a CDRInputStream or CDROutputStreammajor
- The major version of GIOP we are encoding forminor
- The minor version of GIOP we are encoding forpublic byte[] encode(Any data) throws InvalidTypeForEncoding
encode
in interface CodecOperations
InvalidTypeForEncoding
public Any decode(byte[] data) throws FormatMismatch
decode
in interface CodecOperations
FormatMismatch
public byte[] encode_value(Any data) throws InvalidTypeForEncoding
encode_value
in interface CodecOperations
InvalidTypeForEncoding
public Any decode_value(byte[] data, TypeCode tc) throws FormatMismatch, TypeMismatch
decode_value
in interface CodecOperations
FormatMismatch
TypeMismatch
Copyright © 2021 JBoss by Red Hat. All rights reserved.