public class Update extends ProtoStruct
| Modifier and Type | Field and Description |
|---|---|
byte[] |
body |
int |
updateType |
| Constructor and Description |
|---|
Update(java.io.InputStream stream) |
Update(int updateType,
byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getHeader() |
int |
getLength() |
protected void |
readBody(java.io.InputStream bs) |
java.lang.String |
toString() |
protected void |
writeBody(java.io.OutputStream bs) |
readObject, writeObjecttoByteArraypublic Update(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic Update(int updateType,
byte[] body)
public byte getHeader()
getHeader in class ProtoStructprotected void writeBody(java.io.OutputStream bs)
throws java.io.IOException
writeBody in class ProtoStructjava.io.IOExceptionprotected void readBody(java.io.InputStream bs)
throws java.io.IOException
readBody in class ProtoStructjava.io.IOExceptionpublic int getLength()
getLength in class ProtoObjectpublic java.lang.String toString()
toString in class java.lang.Object