public class SyslogParser extends Object
Modifier | Constructor and Description |
---|---|
protected |
SyslogParser(SyslogdConfig config,
String text) |
Modifier and Type | Method and Description |
---|---|
boolean |
find() |
protected SyslogdConfig |
getConfig() |
protected Matcher |
getMatcher() |
static SyslogParser |
getParserInstance(SyslogdConfig config,
String text) |
protected Pattern |
getPattern() |
protected String |
getText() |
protected Boolean |
matched() |
boolean |
matches() |
SyslogMessage |
parse() |
protected static Date |
parseDate(String dateString) |
protected boolean |
traceEnabled() |
protected SyslogParser(SyslogdConfig config, String text)
public static SyslogParser getParserInstance(SyslogdConfig config, String text) throws MessageDiscardedException
MessageDiscardedException
public boolean find()
public boolean matches()
protected Boolean matched()
protected SyslogdConfig getConfig()
protected String getText()
protected boolean traceEnabled()
protected Pattern getPattern()
public SyslogMessage parse() throws SyslogParserException
SyslogParserException
protected Matcher getMatcher()
Copyright © 2017. All rights reserved.