LogEventParser
, TextLogEventParser
public class XmlLogEventParser extends Object
LogEvent
.Constructor | Description |
---|---|
XmlLogEventParser() |
Modifier and Type | Method | Description |
---|---|---|
LogEvent |
parseFrom(byte[] input) |
Parses a byte array, which is expected to contain exactly one log event.
|
LogEvent |
parseFrom(byte[] input,
int offset,
int length) |
Parses a specified range in a byte array.
|
LogEvent |
parseFrom(String input) |
Parses a String, which is expected to contain exactly one log event.
|
public LogEvent parseFrom(String input) throws ParseException
TextLogEventParser
parseFrom
in interface TextLogEventParser
input
- the stringParseException
- if the input is malformed and cannot be parsed as a LogEventpublic LogEvent parseFrom(byte[] input) throws ParseException
LogEventParser
parseFrom
in interface LogEventParser
input
- the byte arrayParseException
- if the input is malformed and cannot be parsed as a LogEventpublic LogEvent parseFrom(byte[] input, int offset, int length) throws ParseException
LogEventParser
parseFrom
in interface LogEventParser
input
- the byte arrayoffset
- the initial offsetlength
- the lengthParseException
- if the input is malformed and cannot be parsed as a LogEventCopyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.