public class ByteMessage extends Object implements 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(ObjectInput in) |
void |
setMessage(byte[] message)
Sets the message contents of this byte message
|
void |
writeExternal(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(ObjectInput in) throws IOException
readExternal
in interface Externalizable
in
- ObjectInputIOException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- ObjectOutputIOException
Externalizable.writeExternal(java.io.ObjectOutput)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.