public abstract class AbstractByteArraySerializer
extends java.lang.Object
implements org.springframework.core.serializer.Serializer<byte[]>, org.springframework.core.serializer.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.
|
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 java.io.IOException
java.io.IOException
protected byte[] copyToSizedArray(byte[] buffer, int size)
buffer
- The buffer containing the data.size
- The number of bytes to copy.