Class HttpByteArrayCacheEntrySerializer

java.lang.Object
org.apache.hc.client5.http.impl.cache.HttpByteArrayCacheEntrySerializer
All Implemented Interfaces:
HttpCacheEntrySerializer<byte[]>

@Contract(threading=STATELESS) public class HttpByteArrayCacheEntrySerializer extends Object implements HttpCacheEntrySerializer<byte[]>
This class implements the HttpCacheEntrySerializer interface, which defines the contract for HTTP cache entry serialization and deserialization. It also includes a default buffer size of 8192 bytes, which can be overridden by specifying a different buffer size in the constructor.
Since:
5.4
  • Field Details

  • Constructor Details

    • HttpByteArrayCacheEntrySerializer

      public HttpByteArrayCacheEntrySerializer(int bufferSize)
      Constructs a HttpByteArrayCacheEntrySerializer with the specified buffer size.
      Parameters:
      bufferSize - the buffer size to use for serialization and deserialization.
    • HttpByteArrayCacheEntrySerializer

      public HttpByteArrayCacheEntrySerializer()
      Constructs a new instance of HttpByteArrayCacheEntrySerializer with a default buffer size.
      See Also:
  • Method Details