public class org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer extends org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer
{
private final org.apache.hc.core.util.ByteArrayBuffer buffer;
public void <init>()
{
org.apache.hc.core.util.ByteArrayBuffer v;
org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer;
specialinvoke v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: void <init>()>();
v = new org.apache.hc.core.util.ByteArrayBuffer;
specialinvoke v.<org.apache.hc.core.util.ByteArrayBuffer: void <init>(int)>(1024);
v.<org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer: org.apache.hc.core.util.ByteArrayBuffer buffer> = v;
return;
}
protected void streamStart(org.apache.hc.core.http.ContentType) throws org.apache.hc.core.http.HttpException, java.io.IOException
{
org.apache.hc.core.http.ContentType v;
org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer;
v := @parameter: org.apache.hc.core.http.ContentType;
return;
}
protected int capacityIncrement()
{
org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer;
return 2147483647;
}
protected void data(java.nio.ByteBuffer, boolean) throws java.io.IOException
{
org.apache.hc.core.util.ByteArrayBuffer v;
java.nio.ByteBuffer v;
org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer v;
boolean v;
v := @this: org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer;
v := @parameter: java.nio.ByteBuffer;
v := @parameter: boolean;
v = v.<org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer: org.apache.hc.core.util.ByteArrayBuffer buffer>;
virtualinvoke v.<org.apache.hc.core.util.ByteArrayBuffer: void append(java.nio.ByteBuffer)>(v);
return;
}
protected byte[] generateContent() throws java.io.IOException
{
byte[] v;
org.apache.hc.core.util.ByteArrayBuffer v;
org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer;
v = v.<org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer: org.apache.hc.core.util.ByteArrayBuffer buffer>;
v = virtualinvoke v.<org.apache.hc.core.util.ByteArrayBuffer: byte[] toByteArray()>();
return v;
}
public void releaseResources()
{
org.apache.hc.core.util.ByteArrayBuffer v;
org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer;
v = v.<org.apache.hc.core.http.nio.entity.BasicAsyncEntityConsumer: org.apache.hc.core.util.ByteArrayBuffer buffer>;
virtualinvoke v.<org.apache.hc.core.util.ByteArrayBuffer: void clear()>();
return;
}
}