Class ChunkEncoder

java.lang.Object
org.apache.http.impl.nio.codecs.AbstractContentEncoder
org.apache.http.impl.nio.codecs.ChunkEncoder
All Implemented Interfaces:
ContentEncoder

public class ChunkEncoder extends AbstractContentEncoder
Implements chunked transfer coding. The content is sent in small chunks. Entities transferred using this decoder can be of unlimited length.
Since:
4.0
  • Constructor Details

    • ChunkEncoder

      public ChunkEncoder(WritableByteChannel channel, SessionOutputBuffer buffer, org.apache.http.impl.io.HttpTransportMetricsImpl metrics, int fragementSizeHint)
      Parameters:
      channel - underlying channel.
      buffer - session buffer.
      metrics - transport metrics.
      fragementSizeHint - fragment size hint defining an minimal size of a fragment that should be written out directly to the channel bypassing the session buffer. Value 0 disables fragment buffering.
      Since:
      4.3
    • ChunkEncoder

      public ChunkEncoder(WritableByteChannel channel, SessionOutputBuffer buffer, org.apache.http.impl.io.HttpTransportMetricsImpl metrics)
  • Method Details