org.apache.logging.log4j.core.net.server
Class ObjectInputStreamLogEventBridge
java.lang.Object
org.apache.logging.log4j.core.net.server.AbstractLogEventBridge<ObjectInputStream>
org.apache.logging.log4j.core.net.server.ObjectInputStreamLogEventBridge
- All Implemented Interfaces:
- LogEventBridge<ObjectInputStream>
public class ObjectInputStreamLogEventBridge
- extends AbstractLogEventBridge<ObjectInputStream>
Reads and logs serialized LogEvent
objects from an ObjectInputStream
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectInputStreamLogEventBridge
public ObjectInputStreamLogEventBridge()
logEvents
public void logEvents(ObjectInputStream inputStream,
LogEventListener logEventListener)
throws IOException
- Description copied from interface:
LogEventBridge
- Reads
LogEvent
s from the given input stream and logs them as they are discovered on the given logger.
- Parameters:
inputStream
- the input stream to readlogEventListener
- TODO
- Throws:
IOException
wrapStream
public ObjectInputStream wrapStream(InputStream inputStream)
throws IOException
- Description copied from interface:
LogEventBridge
- Wraps the given stream if needed.
- Specified by:
wrapStream
in interface LogEventBridge<ObjectInputStream>
- Overrides:
wrapStream
in class AbstractLogEventBridge<ObjectInputStream>
- Parameters:
inputStream
- the stream to wrap
- Returns:
- the wrapped stream or the given stream.
- Throws:
IOException
Copyright © 1999-2014 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.