@Generated(value="colf(1)", comments="Colfer from schema file colferRpc.colf") public class ColferRpc extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ColferRpc.Unmarshaller
Reusable deserialization of Colfer streams. |
| Modifier and Type | Field and Description |
|---|---|
String |
action |
static int |
colferSizeMax
The upper limit for serial byte sizes.
|
String |
host |
String |
service |
String |
version |
| Constructor and Description |
|---|
ColferRpc()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ColferRpc o) |
boolean |
equals(Object o) |
String |
getAction()
Gets Colfer.colferRpc.action.
|
String |
getHost()
Gets Colfer.colferRpc.host.
|
String |
getService()
Gets Colfer.colferRpc.service.
|
String |
getVersion()
Gets Colfer.colferRpc.version.
|
int |
hashCode() |
int |
marshal(byte[] buf,
int offset)
Serializes the object.
|
byte[] |
marshal(OutputStream out,
byte[] buf)
Serializes the object.
|
void |
setAction(String value)
Sets Colfer.colferRpc.action.
|
void |
setHost(String value)
Sets Colfer.colferRpc.host.
|
void |
setService(String value)
Sets Colfer.colferRpc.service.
|
void |
setVersion(String value)
Sets Colfer.colferRpc.version.
|
int |
unmarshal(byte[] buf,
int offset)
Deserializes the object.
|
int |
unmarshal(byte[] buf,
int offset,
int end)
Deserializes the object.
|
public static int colferSizeMax
public String host
public String service
public String action
public String version
public byte[] marshal(OutputStream out, byte[] buf) throws IOException
out - the data destination.buf - the initial buffer or null.buf then the return is buf.
Otherwise the return is a new buffer, large enough to hold the whole serial.IOException - from out.IllegalStateException - on an upper limit breach defined by colferSizeMax.public int marshal(byte[] buf,
int offset)
buf - the data destination.offset - the initial index for buf, inclusive.buf, exclusive.BufferOverflowException - when buf is too small.IllegalStateException - on an upper limit breach defined by colferSizeMax.public int unmarshal(byte[] buf,
int offset)
buf - the data source.offset - the initial index for buf, inclusive.buf, exclusive.BufferUnderflowException - when buf is incomplete. (EOF)SecurityException - on an upper limit breach defined by colferSizeMax.InputMismatchException - when the data does not match this object's schema.public int unmarshal(byte[] buf,
int offset,
int end)
buf - the data source.offset - the initial index for buf, inclusive.end - the index limit for buf, exclusive.buf, exclusive.BufferUnderflowException - when buf is incomplete. (EOF)SecurityException - on an upper limit breach defined by colferSizeMax.InputMismatchException - when the data does not match this object's schema.public String getHost()
public void setHost(String value)
value - the replacement.public String getService()
public void setService(String value)
value - the replacement.public String getAction()
public void setAction(String value)
value - the replacement.public String getVersion()
public void setVersion(String value)
value - the replacement.public final boolean equals(ColferRpc o)
Copyright © 2019. All rights reserved.