Logo Search packages:      
Sourcecode: dbus-java version File versions  Download package

org::freedesktop::dbus::Message::Message ( byte  endian,
byte  type,
byte  flags 
) throws DBusException [inline, protected]

Create a message; only to be called by sub-classes.

Parameters:
endian The endianness to create the message.
type The message type.
flags Any message flags.

Definition at line 174 of file Message.java.

References append(), BUFFERINCREMENT, and preallocate().

   {
      wiredata = new byte[BUFFERINCREMENT][];
      headers = new HashMap<Byte, Object>();
      big = (Endian.BIG == endian);
      bytecounter = 0;
      synchronized (Message.class) {
         serial = ++globalserial;
      }
      if (Debug.debug) Debug.print(Debug.DEBUG, "Creating message with serial "+serial);
      this.type = type;
      this.flags = flags;
      preallocate(4);
      append("yyyy", endian, type, flags, Message.PROTOCOL);
   }


Generated by  Doxygen 1.6.0   Back to index