public abstract class AbstractByteArraySerializer extends 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(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.ApplicationEventPublisherAware
protected void checkClosure(int bite) throws IOException
IOException
protected void publishEvent(Exception cause, byte[] buffer, int offset)