public class RFC6587SyslogDeserializer
extends java.lang.Object
implements org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,?>>
Deserializer instead of a
transformer because we may receive a mixture of octet counting and non-transparent
framing - see RFC 6587.| Constructor and Description |
|---|
RFC6587SyslogDeserializer()
Construct an instance using a
ByteArrayLfSerializer for
non-transparent frames. |
RFC6587SyslogDeserializer(org.springframework.core.serializer.Deserializer<byte[]> delimitedDeserializer)
Construct an instance using the specified
Deserializer for
non-transparent frames. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,?> |
deserialize(java.io.InputStream inputStream) |
protected java.lang.String |
getCharset() |
void |
setParser(RFC5424SyslogParser parser) |
public RFC6587SyslogDeserializer()
ByteArrayLfSerializer for
non-transparent frames.public RFC6587SyslogDeserializer(org.springframework.core.serializer.Deserializer<byte[]> delimitedDeserializer)
Deserializer for
non-transparent frames.delimitedDeserializer - the Deserializer.public void setParser(RFC5424SyslogParser parser)
parser - the parser to setpublic java.util.Map<java.lang.String,?> deserialize(java.io.InputStream inputStream)
throws java.io.IOException
deserialize in interface org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,?>>java.io.IOExceptionprotected java.lang.String getCharset()