Package jmri.jmrix

Class NetMessage

All Implemented Interfaces:
Direct Known Subclasses:

public abstract class NetMessage
extends Object
implements Serializable
Represents a single general command or response.

Content is represented with ints to avoid the problems with sign-extension that bytes have, and because a Java char is actually a variable number of bytes in Unicode.

Both a set of indexed contents, an opcode, and a length field are available. Different implementations will map the opcode and length into the contents in different ways. They may not appear at all...

See Also:
Serialized Form