Class SimpleAsyncEntityConsumer

java.lang.Object
org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
org.apache.hc.client5.http.async.methods.SimpleAsyncEntityConsumer
All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer, org.apache.hc.core5.http.nio.AsyncEntityConsumer<byte[]>, org.apache.hc.core5.http.nio.ResourceHolder

final class SimpleAsyncEntityConsumer extends org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.hc.core5.util.ByteArrayBuffer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
     
    protected void
    data(ByteBuffer src, boolean endOfStream)
     
    protected byte[]
     
    void
     
    protected void
    streamStart(org.apache.hc.core5.http.ContentType contentType)
     

    Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer

    completed, failed, getContent, streamStart

    Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer

    consume, streamEnd, updateCapacity

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer

    consume, streamEnd, updateCapacity
  • Field Details

    • buffer

      private final org.apache.hc.core5.util.ByteArrayBuffer buffer
  • Constructor Details

    • SimpleAsyncEntityConsumer

      public SimpleAsyncEntityConsumer()
  • Method Details

    • streamStart

      protected void streamStart(org.apache.hc.core5.http.ContentType contentType) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      streamStart in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • capacityIncrement

      protected int capacityIncrement()
      Specified by:
      capacityIncrement in class org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
    • data

      protected void data(ByteBuffer src, boolean endOfStream) throws IOException
      Specified by:
      data in class org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
      Throws:
      IOException
    • generateContent

      protected byte[] generateContent() throws IOException
      Specified by:
      generateContent in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<byte[]>
      Throws:
      IOException
    • releaseResources

      public void releaseResources()