Modifier | Constructor and Description |
---|---|
protected |
DefaultLogParser(String logFormatString,
Class<?> entryClass) |
Modifier and Type | Method and Description |
---|---|
LogEntry |
parseLogString(String logString)
Parses line of log data and returns a class that implements the LogEntry interface.
|
protected DefaultLogParser(String logFormatString, Class<?> entryClass) throws LogLineFormatException, IllegalClassException
public LogEntry parseLogString(String logString) throws TokenParseException, IllegalClassException
parseLogString
in interface LogParser
logString
- a line of log data.TokenParseException
- When the formatting string provided to the factory doesn't match the log string.IllegalClassException
- When it cannot create an instance of the LogEntry implementing class.Copyright © 2017 Jason "JRSofty" Reed. All rights reserved.