public class ByteMessage
extends java.lang.Object
implements java.io.Externalizable
getMessage()
bytes.ChannelListener.accept()
whether this message was intended
for you.Constructor and Description |
---|
ByteMessage()
Creates an empty byte message
Constructor also for deserialization
|
ByteMessage(byte[] data)
Creates a byte message wit h
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getMessage()
Returns the message contents of this byte message
|
void |
readExternal(java.io.ObjectInput in) |
void |
setMessage(byte[] message)
Sets the message contents of this byte message
|
void |
writeExternal(java.io.ObjectOutput out) |
public ByteMessage()
public ByteMessage(byte[] data)
data
- byte[] - the message contentspublic byte[] getMessage()
public void setMessage(byte[] message)
message
- byte[]public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
in
- ObjectInputjava.io.IOException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- ObjectOutputjava.io.IOException
Externalizable.writeExternal(java.io.ObjectOutput)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.