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 TypeMethodDescriptionvoidLayoutAdapter.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 TypeMethodDescriptionvoidLog4j1XmlLayout.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 TypeClassDescriptionclassManages actual File I/O for File Appenders.classExtends 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.classManages an OutputStream so that it can be shared by multiple Appenders and will allow appenders to reconfigure without requiring a new stream.classExtends OutputStreamManager but instead of using a buffered output stream, this class uses aByteBufferand aRandomAccessFileto 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 TypeClassDescriptionclassThe Rolling File Manager.classExtends RollingFileManager but instead of using a buffered output stream, this class uses aByteBufferand aRandomAccessFileto 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 ByteBufferTextEncoderHelper.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.voidAbstractLayout.encode(LogEvent event, ByteBufferDestination destination) Encodes the specified source LogEvent to some binary representation and writes the result to the specified destination.voidEncoder.encode(T source, ByteBufferDestination destination) Encodes the specified source object to some binary representation and writes the result to the specified destination.voidGelfLayout.encode(LogEvent event, ByteBufferDestination destination) voidLockingStringBuilderEncoder.encode(StringBuilder source, ByteBufferDestination destination) voidPatternLayout.encode(LogEvent event, ByteBufferDestination destination) voidStringBuilderEncoder.encode(StringBuilder source, ByteBufferDestination destination) private static ByteBufferTextEncoderHelper.encodeAsMuchAsPossible(CharsetEncoder charsetEncoder, CharBuffer charBuf, boolean endOfInput, ByteBufferDestination destination, ByteBuffer temp) private static voidTextEncoderHelper.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.(package private) static voidTextEncoderHelper.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 voidTextEncoderHelper.encodeText(CharsetEncoder charsetEncoder, CharBuffer charBuf, ByteBufferDestination destination) Deprecated.(package private) static voidTextEncoderHelper.encodeTextFallBack(Charset charset, StringBuilder text, ByteBufferDestination destination) private static voidTextEncoderHelper.flushRemainingBytes(CharsetEncoder charsetEncoder, ByteBufferDestination destination, ByteBuffer temp) private voidLockingStringBuilderEncoder.logEncodeTextException(Exception ex, StringBuilder text, ByteBufferDestination destination) private voidStringBuilderEncoder.logEncodeTextException(Exception ex, StringBuilder text, ByteBufferDestination destination) private static ByteBufferTextEncoderHelper.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 voidTextEncoderHelper.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 voidTextEncoderHelper.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 voidByteBufferDestinationHelper.writeToUnsynchronized(byte[] data, int offset, int length, ByteBufferDestination destination) Writes the specified data to the specified destination.static voidByteBufferDestinationHelper.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 TypeClassDescriptionclassAbstract base class for managing sockets.classSocket Manager for UDP connections.classclassManager of TCP Socket connections. -
Uses of ByteBufferDestination in org.apache.logging.log4j.layout.template.json
Methods in org.apache.logging.log4j.layout.template.json with parameters of type ByteBufferDestinationModifier and TypeMethodDescriptionvoidJsonTemplateLayout.encode(LogEvent event, ByteBufferDestination destination)