Uses of Interface
org.apache.logging.log4j.core.layout.ByteBufferDestination
Packages that use ByteBufferDestination
Package
Description
Log4j 2 Appenders.
Rolling File Appender and support classes.
Log4j 2 Layout support.
Log4j 2 network support.
-
Uses of ByteBufferDestination in org.apache.log4j.bridge
Methods in org.apache.log4j.bridge with parameters of type ByteBufferDestinationModifier and TypeMethodDescriptionvoid
LayoutAdapter.encode
(LogEvent event, ByteBufferDestination destination) -
Uses of ByteBufferDestination in org.apache.log4j.layout
Methods in org.apache.log4j.layout with parameters of type ByteBufferDestinationModifier and TypeMethodDescriptionvoid
Log4j1XmlLayout.encode
(LogEvent event, ByteBufferDestination destination) -
Uses of ByteBufferDestination in org.apache.logging.log4j.core.appender
Classes in org.apache.logging.log4j.core.appender that implement ByteBufferDestinationModifier and TypeClassDescriptionclass
Manages actual File I/O for File Appenders.class
Extends OutputStreamManager but instead of using a buffered output stream, this class maps a region of a file into memory and writes to this memory region.class
Manages an OutputStream so that it can be shared by multiple Appenders and will allow appenders to reconfigure without requiring a new stream.class
Extends OutputStreamManager but instead of using a buffered output stream, this class uses aByteBuffer
and aRandomAccessFile
to do the I/O. -
Uses of ByteBufferDestination in org.apache.logging.log4j.core.appender.rolling
Classes in org.apache.logging.log4j.core.appender.rolling that implement ByteBufferDestinationModifier and TypeClassDescriptionclass
The Rolling File Manager.class
Extends RollingFileManager but instead of using a buffered output stream, this class uses aByteBuffer
and aRandomAccessFile
to do the I/O. -
Uses of ByteBufferDestination in org.apache.logging.log4j.core.layout
Methods in org.apache.logging.log4j.core.layout with parameters of type ByteBufferDestinationModifier and TypeMethodDescriptionprivate static ByteBuffer
TextEncoderHelper.drainIfByteBufferFull
(ByteBufferDestination destination, ByteBuffer temp, CoderResult result) If the CoderResult indicates the ByteBuffer is full, synchronize on the destination and write the content of the ByteBuffer to the destination.void
AbstractLayout.encode
(LogEvent event, ByteBufferDestination destination) Encodes the specified source LogEvent to some binary representation and writes the result to the specified destination.void
Encoder.encode
(T source, ByteBufferDestination destination) Encodes the specified source object to some binary representation and writes the result to the specified destination.void
LockingStringBuilderEncoder.encode
(StringBuilder source, ByteBufferDestination destination) void
PatternLayout.encode
(LogEvent event, ByteBufferDestination destination) void
StringBuilderEncoder.encode
(StringBuilder source, ByteBufferDestination destination) private static ByteBuffer
TextEncoderHelper.encodeAsMuchAsPossible
(CharsetEncoder charsetEncoder, CharBuffer charBuf, boolean endOfInput, ByteBufferDestination destination, ByteBuffer temp) private static void
TextEncoderHelper.encodeChunkedText
(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBuffer byteBuf, StringBuilder text, ByteBufferDestination destination) This method is called before the CharEncoder has encoded any content from the CharBuffer into the ByteBuffer, but we have already detected that the CharBuffer contents is too large to fit into the ByteBuffer.static void
TextEncoderHelper.encodeText
(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBuffer byteBuf, StringBuilder text, ByteBufferDestination destination) Converts the specified text to bytes and writes the resulting bytes to the specified destination.static void
TextEncoderHelper.encodeText
(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBufferDestination destination) Deprecated.(package private) static void
TextEncoderHelper.encodeTextFallBack
(Charset charset, StringBuilder text, ByteBufferDestination destination) private static void
TextEncoderHelper.flushRemainingBytes
(CharsetEncoder charsetEncoder, ByteBufferDestination destination, ByteBuffer temp) private void
LockingStringBuilderEncoder.logEncodeTextException
(Exception ex, StringBuilder text, ByteBufferDestination destination) private static ByteBuffer
TextEncoderHelper.writeAndEncodeAsMuchAsPossible
(CharsetEncoder charsetEncoder, CharBuffer charBuf, boolean endOfInput, ByteBufferDestination destination, ByteBuffer temp, CoderResult result) Continues to write the contents of the ByteBuffer to the destination and encode more of the CharBuffer text into the ByteBuffer until the remaining encoded text fit into the ByteBuffer, at which point the ByteBuffer is returned (without flushing the CharEncoder).private static void
TextEncoderHelper.writeChunkedEncodedText
(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBufferDestination destination, ByteBuffer byteBuf, CoderResult result) This method is called when the CharEncoder has encoded (but not yet flushed) content from the CharBuffer into the ByteBuffer and we found that the ByteBuffer is too small to hold all the content.private static void
TextEncoderHelper.writeEncodedText
(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBuffer byteBuf, ByteBufferDestination destination, CoderResult result) This method is called when the CharEncoder has encoded (but not yet flushed) content from the CharBuffer into the ByteBuffer.static void
ByteBufferDestinationHelper.writeToUnsynchronized
(byte[] data, int offset, int length, ByteBufferDestination destination) Writes the specified data to the specified destination.static void
ByteBufferDestinationHelper.writeToUnsynchronized
(ByteBuffer source, ByteBufferDestination destination) Writes the specified data to the specified destination. -
Uses of ByteBufferDestination in org.apache.logging.log4j.core.net
Classes in org.apache.logging.log4j.core.net that implement ByteBufferDestinationModifier and TypeClassDescriptionclass
Abstract base class for managing sockets.class
Socket Manager for UDP connections.class
class
Manager of TCP Socket connections.