public class ProtoMessage extends ProtoObject
| Constructor and Description |
|---|
ProtoMessage(java.io.InputStream stream) |
ProtoMessage(long messageId,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
ProtoObject |
readObject(java.io.InputStream bs) |
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream bs) |
toByteArraypublic ProtoMessage(long messageId,
byte[] payload)
public ProtoMessage(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic void writeObject(java.io.OutputStream bs)
throws java.io.IOException
writeObject in class ProtoObjectjava.io.IOExceptionpublic ProtoObject readObject(java.io.InputStream bs) throws java.io.IOException
readObject in class ProtoObjectjava.io.IOExceptionpublic int getLength()
getLength in class ProtoObjectpublic java.lang.String toString()
toString in class java.lang.Object