- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
-
-
Method Summary
Methods
Modifier and Type |
Method and 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.
|
-
-
Method Detail
-
parseFrom
LogEvent parseFrom(byte[] input)
throws ParseException
Parses a byte array, which is expected to contain exactly one log event.
- Parameters:
input
- the byte array
- Returns:
- the parsed LogEvent, never null.
- Throws:
ParseException
- if the input is malformed and cannot be parsed as a LogEvent
-
parseFrom
LogEvent parseFrom(byte[] input,
int offset,
int length)
throws ParseException
Parses a specified range in a byte array. The specified range is expected to contain
exactly one log event.
- Parameters:
input
- the byte arrayoffset
- the initial offsetlength
- the length
- Returns:
- the parsed LogEvent, never null.
- Throws:
ParseException
- if the input is malformed and cannot be parsed as a LogEvent
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 1999-2017 The Apache Software Foundation. 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.