public abstract class AbstractByteArraySerializer
extends java.lang.Object
implements org.springframework.core.serializer.Serializer<byte[]>, org.springframework.core.serializer.Deserializer<byte[]>, org.springframework.context.ApplicationEventPublisherAware
| 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) |
int |
getMaxMessageSize()
The maximum supported message size for this serializer.
|
protected void |
publishEvent(java.lang.Exception cause,
byte[] buffer,
int offset) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
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.public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareprotected void checkClosure(int bite)
throws java.io.IOException
java.io.IOExceptionprotected void publishEvent(java.lang.Exception cause,
byte[] buffer,
int offset)