Methods Summary |
---|
public FragmentMessage | createFragmentMessage()
throw wrapper.fragmentationDisallowed(
CompletionStatus.COMPLETED_MAYBE);
|
public com.sun.corba.se.spi.ior.iiop.GIOPVersion | getGIOPVersion()
return this.GIOP_version;
|
public int | getSize()
return this.message_size;
|
public int | getType()
return this.message_type;
|
public boolean | isLittleEndian()
return this.byte_order;
|
public boolean | moreFragmentsToFollow()
return false;
|
public void | read(org.omg.CORBA.portable.InputStream istream)
/*
this.magic = istream.read_long();
this.GIOP_version = (new GIOPVersion()).read(istream);
this.byte_order = istream.read_boolean();
this.message_type = istream.read_octet();
this.message_size = istream.read_ulong();
*/
|
public void | setSize(java.nio.ByteBuffer byteBuffer, int size)
this.message_size = size;
//
// Patch the size field in the header.
//
int patch = size - GIOPMessageHeaderLength;
if (!isLittleEndian()) {
byteBuffer.put(8, (byte)((patch >>> 24) & 0xFF));
byteBuffer.put(9, (byte)((patch >>> 16) & 0xFF));
byteBuffer.put(10, (byte)((patch >>> 8) & 0xFF));
byteBuffer.put(11, (byte)((patch >>> 0) & 0xFF));
} else {
byteBuffer.put(8, (byte)((patch >>> 0) & 0xFF));
byteBuffer.put(9, (byte)((patch >>> 8) & 0xFF));
byteBuffer.put(10, (byte)((patch >>> 16) & 0xFF));
byteBuffer.put(11, (byte)((patch >>> 24) & 0xFF));
}
|
public void | write(org.omg.CORBA.portable.OutputStream ostream)
ostream.write_long(this.magic);
nullCheck(this.GIOP_version);
this.GIOP_version.write(ostream);
ostream.write_boolean(this.byte_order);
ostream.write_octet(this.message_type);
ostream.write_ulong(this.message_size);
|