public class RFC5424SyslogParser extends Object
RFC6587SyslogDeserializer
which decodes the framing.Modifier and Type | Class and Description |
---|---|
protected static class |
RFC5424SyslogParser.Reader |
protected static class |
RFC5424SyslogParser.Severity |
Modifier and Type | Field and Description |
---|---|
protected static char |
NILVALUE |
protected boolean |
retainOriginal |
protected static char |
SPACE |
Constructor and Description |
---|
RFC5424SyslogParser()
Construct a default parser; do not retain the original message content unless there
is an error.
|
RFC5424SyslogParser(boolean retainOriginal) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getTimestamp(RFC5424SyslogParser.Reader r)
Default implementation returns the date as a String (if present).
|
Map<String,?> |
parse(String lineArg,
int octetCount,
boolean shortRead) |
protected Object |
parseStructuredDataElements(RFC5424SyslogParser.Reader r)
Default implementation returns a list of structured data elements with
no internal parsing.
|
protected static final char NILVALUE
protected static final char SPACE
protected final boolean retainOriginal
public RFC5424SyslogParser()
public RFC5424SyslogParser(boolean retainOriginal)
retainOriginal
- when true, include the original message content intact in the
map.protected Object getTimestamp(RFC5424SyslogParser.Reader r)
r
- the reader.protected Object parseStructuredDataElements(RFC5424SyslogParser.Reader r)
r
- the reader.