public abstract class AbstractByteArraySerializer extends Object implements Serializer<byte[]>, Deserializer<byte[]>
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
protected int |
maxMessageSize |
Constructor and Description |
---|
AbstractByteArraySerializer() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkClosure(int bite) |
protected byte[] |
copyToSizedArray(byte[] buffer,
int size)
Copy size bytes to a new buffer exactly size bytes long.
|
int |
getMaxMessageSize()
The maximum supported message size for this serializer.
|
void |
setMaxMessageSize(int maxMessageSize)
The maximum supported message size for this serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize
deserialize
protected int maxMessageSize
protected final org.apache.commons.logging.Log logger
public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
maxMessageSize
- The max message size.protected void checkClosure(int bite) throws IOException
IOException
protected byte[] copyToSizedArray(byte[] buffer, int size)
buffer
- The buffer containing the data.size
- The number of bytes to copy.