public class RFC6587SyslogDeserializer extends Object implements Deserializer<Map<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(Deserializer<byte[]> delimitedDeserializer)
Construct an instance using the specified
Deserializer for
non-transparent frames. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
deserialize(InputStream inputStream) |
protected String |
getCharset() |
void |
setParser(RFC5424SyslogParser parser) |
public RFC6587SyslogDeserializer()
ByteArrayLfSerializer for
non-transparent frames.public RFC6587SyslogDeserializer(Deserializer<byte[]> delimitedDeserializer)
Deserializer for
non-transparent frames.delimitedDeserializer - the Deserializer.public void setParser(RFC5424SyslogParser parser)
parser - the parser to setpublic Map<String,?> deserialize(InputStream inputStream) throws IOException
deserialize in interface Deserializer<Map<String,?>>IOExceptionprotected String getCharset()