FileDocCategorySizeDatePackage
Message_1_0.javaAPI DocJava SE 5 API3726Fri Aug 26 14:54:32 BST 2005com.sun.corba.se.impl.protocol.giopmsgheaders

Message_1_0

public class Message_1_0 extends com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase

Fields Summary
private static com.sun.corba.se.impl.logging.ORBUtilSystemException
wrapper
int
magic
com.sun.corba.se.spi.ior.iiop.GIOPVersion
GIOP_version
boolean
byte_order
byte
message_type
int
message_size
Constructors Summary
Message_1_0()


    // Constructor

     
    
Message_1_0(int _magic, boolean _byte_order, byte _message_type, int _message_size)

        magic = _magic;
        GIOP_version = GIOPVersion.V1_0;
        byte_order = _byte_order;
        message_type = _message_type;
        message_size = _message_size;
    
Methods Summary
public FragmentMessagecreateFragmentMessage()

	throw wrapper.fragmentationDisallowed(
	    CompletionStatus.COMPLETED_MAYBE);
    
public com.sun.corba.se.spi.ior.iiop.GIOPVersiongetGIOPVersion()

        return this.GIOP_version;
    
public intgetSize()

	    return this.message_size;
    
public intgetType()

    	return this.message_type;
    
public booleanisLittleEndian()

    	return this.byte_order;
    
public booleanmoreFragmentsToFollow()

    	return false;
    
public voidread(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 voidsetSize(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 voidwrite(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);