Class RFC6587SyslogDeserializer
java.lang.Object
org.springframework.integration.syslog.inbound.RFC6587SyslogDeserializer
- All Implemented Interfaces:
Deserializer<Map<String,?>>
public class RFC6587SyslogDeserializer extends Object implements Deserializer<Map<String,?>>
RFC5424/6587 Deserializer. Implemented as a
Deserializer
instead of a
transformer because we may receive a mixture of octet counting and non-transparent
framing - see RFC 6587.- Since:
- 4.1.1
- Author:
- Duncan McIntyre, Gary Russell
-
Constructor Summary
Constructors Constructor Description RFC6587SyslogDeserializer()
Construct an instance using aByteArrayLfSerializer
for non-transparent frames.RFC6587SyslogDeserializer(Deserializer<byte[]> delimitedDeserializer)
Construct an instance using the specifiedDeserializer
for non-transparent frames. -
Method Summary
Modifier and Type Method Description Map<String,?>
deserialize(InputStream inputStream)
protected String
getCharset()
void
setParser(RFC5424SyslogParser parser)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.serializer.Deserializer
deserializeFromByteArray
-
Constructor Details
-
RFC6587SyslogDeserializer
public RFC6587SyslogDeserializer()Construct an instance using aByteArrayLfSerializer
for non-transparent frames. -
RFC6587SyslogDeserializer
Construct an instance using the specifiedDeserializer
for non-transparent frames.- Parameters:
delimitedDeserializer
- the Deserializer.
-
-
Method Details
-
setParser
- Parameters:
parser
- the parser to set
-
deserialize
- Specified by:
deserialize
in interfaceDeserializer<Map<String,?>>
- Throws:
IOException
-
getCharset
-