public class Appearance
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
audio |
protected int |
em |
protected int |
ir |
protected int |
visual |
Constructor and Description |
---|
Appearance()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring
transient and static fields, for
this and the supplied object |
int |
getAudio()
Getter for
audio |
int |
getEm()
Getter for
em |
int |
getIr()
Getter for
ir |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
int |
getVisual()
Getter for
visual |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
Appearance |
setAudio(int pAudio)
Setter for
audio |
Appearance |
setEm(int pEm)
Setter for
em |
Appearance |
setIr(int pIr)
Setter for
ir |
Appearance |
setVisual(int pVisual)
Setter for
visual |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
protected int visual
protected int ir
protected int em
protected int audio
public int getMarshalledSize()
public Appearance setVisual(int pVisual)
visual
public int getVisual()
visual
public Appearance setIr(int pIr)
ir
public int getIr()
ir
public Appearance setEm(int pEm)
em
public int getEm()
em
public Appearance setAudio(int pAudio)
audio
public int getAudio()
audio
public void marshal(java.io.DataOutputStream dos)
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsImpl(java.lang.Object obj)
this
and the supplied objectobj
- the object to compare to