Class ByteBufferDestinationHelper
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.ByteBufferDestinationHelper
-
public final class ByteBufferDestinationHelper extends java.lang.ObjectHelper class for ByteBufferDestination implementors.- Since:
- 2.9 (see LOG4J2-1874)
-
-
Constructor Summary
Constructors Modifier Constructor Description privateByteBufferDestinationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteToUnsynchronized(byte[] data, int offset, int length, ByteBufferDestination destination)Writes the specified data to the specified destination.static voidwriteToUnsynchronized(java.nio.ByteBuffer source, ByteBufferDestination destination)Writes the specified data to the specified destination.
-
-
-
Method Detail
-
writeToUnsynchronized
public static void writeToUnsynchronized(java.nio.ByteBuffer source, ByteBufferDestination destination)Writes the specified data to the specified destination. Doesn't synchronize on the destination object. The helper method forByteBufferDestination.writeBytes(ByteBuffer)implementations.- Parameters:
source- the data to writedestination- theByteBufferDestinationto write to
-
writeToUnsynchronized
public static void writeToUnsynchronized(byte[] data, int offset, int length, ByteBufferDestination destination)Writes the specified data to the specified destination. Doesn't synchronize on the destination object. The helper method forByteBufferDestination.writeBytes(byte[], int, int)implementations.- Parameters:
data- the data to writeoffset- where to start in the specified data arraylength- the number of bytes to writedestination- theByteBufferDestinationto write to
-
-