public class ObjectInputStreamLogEventBridge extends AbstractLogEventBridge<ObjectInputStream>
LogEvent objects from an ObjectInputStream.END, logger| Constructor and Description |
|---|
ObjectInputStreamLogEventBridge() |
| Modifier and Type | Method and Description |
|---|---|
void |
logEvents(ObjectInputStream inputStream,
LogEventListener logEventListener)
Reads
LogEvents from the given input stream and logs them as they are discovered on the given logger. |
ObjectInputStream |
wrapStream(InputStream inputStream)
Wraps the given stream if needed.
|
public void logEvents(ObjectInputStream inputStream, LogEventListener logEventListener) throws IOException
LogEventBridgeLogEvents from the given input stream and logs them as they are discovered on the given logger.inputStream - the input stream to readlogEventListener - TODOIOExceptionpublic ObjectInputStream wrapStream(InputStream inputStream) throws IOException
LogEventBridgewrapStream in interface LogEventBridge<ObjectInputStream>wrapStream in class AbstractLogEventBridge<ObjectInputStream>inputStream - the stream to wrapIOExceptionCopyright © 1999-2021 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.